Cyfrin / solidity-by-example.github.io

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

Fix typos and grammar #203

Closed gitwinst closed 2 years ago

t4sk commented 2 years ago

@gitwinst Thanks. Please edit Function.sol. Not index.html.ts Also I think the grammar neither nor is correct

gitwinst commented 2 years ago

Gotcha! Will do now.

The neither/nor combination expresses negation all by itself, so it shouldn't be used in combination with another negative, i.e. 'cannot'. As such, this comment could be written two ways:

// Cannot use map for either input or output

// Can use map for neither input nor output

I think the first option does a better job at making your point: you cannot use a mapping type as a function's input or output parameters.