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

Unclear example on mutability #102

Closed
mark-summerfield opened this issue May 18, 2016 · 2 comments
Closed

Unclear example on mutability #102

mark-summerfield opened this issue May 18, 2016 · 2 comments

Comments

@mark-summerfield
Copy link

In https://doc.rust-lang.org/book/mutability.html at the end of the Mutability section it has these examples:

let (mut x, y) = (5, 6);
fn foo(mut x: i32) {

I think there should be some following text, e.g.

Note that here, x is mutable, but y is not.

@peschkaj
Copy link

Howdy @mark-summerfield, this repository is for the second edition of the book. Does the new section on [mutable bindings](http://rust-lang.github.io/book/variable-bindings.html#Mutable bindings) clear things up for you?

Could also file this issue against rust-lang/rust?

@steveklabnik
Copy link
Member

Yes, please do!

amitu pushed a commit to FifthTry/rust-book that referenced this issue Jun 1, 2021
AbrarNitk pushed a commit to FifthTry/rust-book that referenced this issue Jun 2, 2021
ベクタの destroy の訳語を「破壊」から「破棄」へ
AbrarNitk pushed a commit to FifthTry/rust-book that referenced this issue Jun 2, 2021
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

No branches or pull requests

3 participants