-
Notifications
You must be signed in to change notification settings - Fork 6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Minor syntax and formatting changes #3337
Conversation
celeduc
commented
Dec 15, 2017
- consistent use of quote characters within sample code comments
- Some English syntax errors and typos
docs/contracts.rst
Outdated
@@ -128,7 +128,7 @@ Visibility and Getters | |||
Since Solidity knows two kinds of function calls (internal | |||
ones that do not create an actual EVM call (also called | |||
a "message call") and external | |||
ones that do), there are four types of visibilities for |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please also remove the opening parenthesis above.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reverted. Although nested parentheses aren't great, it's the clearest option here.
docs/contracts.rst
Outdated
/// reentrant calls from within msg.sender.call cannot call f again. | ||
/// The `return 7` statement assigns 7 to the return value but still | ||
/// executes the statement `locked = false` in the modifier. | ||
/// reentrant calls from within "msg.sender.call" cannot call "f" again. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The backticks are used to format code, I think it is good to keep them unless you have a compelling reason.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Which is the standard? There are two different styles in this file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah I'm sorry, I didn't see that. I would lean slightly towards backticks for code citations (quotes should still be used for anything that is not code). What do you think, @axic?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I applied this throughout this file with the latest commit.
docs/contracts.rst
Outdated
@@ -1383,6 +1383,6 @@ It is also possible to extend elementary types in that way:: | |||
} | |||
|
|||
Note that all library calls are actual EVM function calls. This means that | |||
if you pass memory or value types, a copy will be performed, even of the | |||
if you pass ``memory`` or value types, a copy will be performed, even of the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here, the term "memory" is not used as the name of something but rather the concept and thus I would not code-format it, same goes for storage below.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reverted
wherever a reserved word, function or variable name is used in a comment