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

small fix to output of code sample in intro.md #18495

Merged
merged 1 commit into from
Nov 3, 2014

Conversation

rolfvandekrol
Copy link
Contributor

The output of the code sample that explains ownership is not correct.

The

(*array)[i] += 1;

line in the code actually causes the output to be 2, 3 and 4 (in non-deterministic order) instead of 1, 2 and 3.

@rust-highfive
Copy link
Collaborator

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @pcwalton (or someone else) soon.

@steveklabnik
Copy link
Member

Thanks! Wonder how I messed this up.

alexcrichton added a commit to alexcrichton/rust that referenced this pull request Nov 3, 2014
@bors bors merged commit 66b8cc8 into rust-lang:master Nov 3, 2014
lnicola pushed a commit to lnicola/rust that referenced this pull request Nov 18, 2024
…rder_fields

Migrate `reorder_fields` Assist to Use `SyntaxFactory`
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.

5 participants