-
Notifications
You must be signed in to change notification settings - Fork 13.4k
insignificant fix to rust manual and tutorial #12362
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
Conversation
@@ -1627,7 +1627,7 @@ pub mod submodule { | |||
fn my_implementation() {} | |||
|
|||
#[cfg(test)] | |||
mod test { | |||
mod tests { |
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.
Any particular reason for this? mod test
seems to be more common in the source tree.
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.
This diff is a little convoluted with things like |
All the changes in this PR are "insignificant fix", as the title described. I don't think we need another "insignificant fix" PR to just rename a word or change lines wrapping. |
I don't know what "mirror fix" means. (Googling "mirror fix" was ... interesting...) update: did you mean to say "minor fix" ? I was honestly confused. |
@pnkfelix Sorry! My fault. I means "insignificant fix". Updated and rebased. |
@alexcrichton I've changed back |
change `extern mod` to `extern crate`, `package id` to `crate id`, and some lines wrapping fix, etc.
[`map_entry`]: Check insert expression for map use The lint makes sure that the map is not used (borrowed) before the call to `insert`. Since the lint creates a mutable borrow on the map with the `Entry`, it wouldn't be possible to replace such code with `Entry`. However, expressions up to the `insert` call are checked, but not expressions for the arguments of the `insert` call itself. This commit fixes that. Fixes rust-lang#11935 ---- changelog: [`map_entry`]: Fix false positive when borrowing the map in the `insert` call
change
extern mod
toextern crate
,package id
tocrate id
, and some lines wrapping fix, etc.