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

Textual corrections #25221

Merged
merged 1 commit into from
May 13, 2015
Merged

Textual corrections #25221

merged 1 commit into from
May 13, 2015

Conversation

michal-czardybon
Copy link
Contributor

I corrected some pretty obvious textual mistakes. One thing requires more attention - the paragraph at line 133 in Ownership. It was confusing, so I changed it, but I am no sure if this is what the author had in mind.

@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 @steveklabnik (or someone else) soon.

If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. The way Github handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes.

Please see CONTRIBUTING.md for more information.

@steveklabnik
Copy link
Member

Most of this is good, but I think some was already fixed in accepted PRs, so I wonder if it will conflict. Mobile won't let me comment inline, I have one or two nits, and will try to get to a computer soon :)

@bors
Copy link
Contributor

bors commented May 8, 2015

☔ The latest upstream changes (presumably #25218) made this pull request unmergeable. Please resolve the merge conflicts.

for `v2`. Which would mean two pointers to the contents of the vector on the
vector’s data, however, is stored on the [heap][sh], and so the vector contains a
pointer to that data. When we move `v` to `v2`, it creates a copy of that pointer,
for `v2`. This would mean two pointers to the content of the vector on the
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This would mean there would be two pointers to the content of the vector on the

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 suggest "Which means that there would be two pointers to". "This" conflicts a bit with very similar phrase in the next sentence. The form of "means" refers to another Present Simple in the previous sentence. I will review the entire paragraph soon.

@steveklabnik
Copy link
Member

@michal-czardybon would you mind rebasing and squashing this please? we don't generally want 'merge remote-tracking branch' commits in here. now to comment inline...

@@ -106,8 +106,8 @@ take(v);
println!("v[0] is: {}", v[0]);
```

Same error: “use of moved value.” When we transfer ownership to something else,
we say that we’ve ‘moved’ the thing we refer to. You don’t need some sort of
Same error: “use of moved value”. When we transfer ownership to something else,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should actually be single curlies rather than double, would you mind fixing that?

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 am changing this. Btw. I must copy-and-paste the quote characters. Is there any way to type them directly?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My editor is set up to insert them automatically, I'm not sure with your setup.

@steveklabnik
Copy link
Member

Some small nits, thank you again for this patch :)

@michal-czardybon
Copy link
Contributor Author

would you mind rebasing and squashing this please? we don't generally want 'merge remote-tracking branch' commits in here. now to comment inline...

I will need some time to understand this. I am new to Git and was following GitHub's instructions on "push requests" without much understanding. I will read more.

@steveklabnik
Copy link
Member

@steveklabnik
Copy link
Member

@michal-czardybon oh, and check out the AUTHORs PR and make sure your name appears there, please

@steveklabnik
Copy link
Member

(it won't yet since this wasn't merged, but it will be, so you should be on it)

@michal-czardybon
Copy link
Contributor Author

oh, and check out the AUTHORs PR and make sure your name appears there, please

This is yet another thing I do not understand. Sorry for beginner's question by I cannot google what is "AUTHORs PR".

@steveklabnik
Copy link
Member

Sorry, I'm full of shortcuts today :(

Because 1.0 is happening this week, some commits are getting backported to the release. yours is one of them. I'll handle all those details, but the AUTHORS.txt file doesn't include your name, since we ran the 'get everyone's names' script before this PR was merged.

So, head over to #25196 and mention that you should be in there, because of this PR.

@michal-czardybon
Copy link
Contributor Author

I tried to follow the instructions about "rebasing". I faced some problems, but I think I did it. Did I?

Corrected "Ownership":

- [`Variable bindings`] link was not processed properly.
- Changed the paragraph about move semantics with two vectors, because it was confusing.
- Removed "So it may not be as inefficient as it initially seems", because there is nothing that seems inefficient in copying pointers only.
- Other text corrections.

Fixed copied-and-pasted text mistakes.

Revised the paragraph about moving a vector (taking into account suggestions by echochamber).

Fixed markdown.

Fixes requested by steveklabnik.

Brought back a sentence about supposed inefficiency.
@steveklabnik
Copy link
Member

yes! Thanks so much

@steveklabnik
Copy link
Member

@bors: r+ rollup

@bors
Copy link
Contributor

bors commented May 12, 2015

📌 Commit bff1707 has been approved by steveklabnik

steveklabnik added a commit to steveklabnik/rust that referenced this pull request May 12, 2015
…bnik

I corrected some pretty obvious textual mistakes. One thing requires more attention - the paragraph at line 133 in Ownership. It was confusing, so I changed it, but I am no sure if this is what the author had in mind.
Manishearth added a commit to Manishearth/rust that referenced this pull request May 12, 2015
…bnik

I corrected some pretty obvious textual mistakes. One thing requires more attention - the paragraph at line 133 in Ownership. It was confusing, so I changed it, but I am no sure if this is what the author had in mind.
bors added a commit that referenced this pull request May 12, 2015
@bors bors merged commit bff1707 into rust-lang:master May 13, 2015
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