Cyfrin / solidity-by-example.github.io

Solidity By Example
https://solidity-by-example.org/
MIT License
605 stars 191 forks source link

typos in the `Primitives.sol` contract #274

Closed amidmm closed 2 months ago

amidmm commented 2 months ago

There are cases in Primitives.sol the comment refers to uint and int, however, in code uint256 and int256 has been used instead.

t4sk commented 2 months ago

the code formatter (forge fmt) automatically change uint into uint256. I don't want to constantly fix this so I will let the formatter do it's thing and leave a comment saying "uint is alias for uint256"

amidmm commented 2 months ago

I don't know if it would be confusing in the tutorial or not, but you can use // forgefmt: disable-next-line to prevent the automatic change.