-
Notifications
You must be signed in to change notification settings - Fork 13k
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
docs: make some text changes on Section Macros
#32509
Conversation
(1) In contrast to `that`, `so that` expresses `result` indicated by the sentence, not `reason`; (2) `block` is an expression, and may be have an expression, so I add `optional an expression` to make more precise; (3) When I read here, I was confused with what `the child` referred to. After modification, it would be better.
(rust_highfive has picked a reviewer for you, use r? to override) |
@@ -470,7 +470,7 @@ which syntactic form it matches. | |||
* `ty`: a type. Examples: `i32`; `Vec<(char, String)>`; `&T`. | |||
* `pat`: a pattern. Examples: `Some(t)`; `(17, 'a')`; `_`. | |||
* `stmt`: a single statement. Example: `let x = 3`. | |||
* `block`: a brace-delimited sequence of statements. Example: | |||
* `block`: a brace-delimited sequence of statements and optional an expression. Example: |
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.
it should be "optionally"
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.
Yes, you are right. Thanks for your suggestion.
@bors: r+ rollup |
📌 Commit 708c5d0 has been approved by |
docs: make some text changes on Section `Macros` (1) In contrast to `that`, `so that` expresses `result` indicated by the sentence, not `reason`; (2) `block` is an expression, and may be have an expression, so I add `optionally an expression` to make more precise; ~~(3) When I read here, I was confused with what `the child` referred to. After modification, it would be better.~~
(1) In contrast to
that
,so that
expressesresult
indicated by the sentence, notreason
;(2)
block
is an expression, and may be have an expression, so I addoptionally an expression
to make more precise;(3) When I read here, I was confused with whatthe child
referred to. After modification, it would be better.