Skip to content
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

Merged
merged 4 commits into from
Dec 20, 2017
Merged

Conversation

celeduc
Copy link
Contributor

@celeduc celeduc commented Dec 15, 2017

  • consistent use of quote characters within sample code comments
  • Some English syntax errors and typos

@@ -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
Copy link
Contributor

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.

Copy link
Contributor Author

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.

/// 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.
Copy link
Contributor

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.

Copy link
Contributor Author

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.

Copy link
Contributor

@chriseth chriseth Dec 18, 2017

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?

Copy link
Contributor Author

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.

@@ -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
Copy link
Contributor

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.

Copy link
Contributor Author

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
@chriseth chriseth merged commit efc198d into ethereum:develop Dec 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants