Skip to content

Various tutorial fixes. #10880

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

Merged
merged 21 commits into from
Dec 10, 2013
Merged

Various tutorial fixes. #10880

merged 21 commits into from
Dec 10, 2013

Conversation

emberian
Copy link
Member

@emberian emberian commented Dec 9, 2013

Many of them are small. Will squash on request, but I feel like it's easier
for everyone (easier to see and back out individual changes) this way.


# Creating Documentation

Documenting Rust APIs is quite simple To document a given item, we have "doc
Copy link
Member

Choose a reason for hiding this comment

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

s/T/t/

Copy link
Member

Choose a reason for hiding this comment

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

s/simple To/simple. To/

@huonw
Copy link
Member

huonw commented Dec 9, 2013

cc @thestinger for the tutorial parts.

Objects are never accessible after their destructor has been called, so there
are no dynamic failures from accessing freed resources. When a task fails, the
Destructors are only called once an object is inaccessible, so no dynamic
failures are possible from accessing freed resources. When a task fails,
Copy link
Member

Choose a reason for hiding this comment

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

This change does not mean precisely the same thing as the original sentence. In particular, the original phrasing indicates that inaccessibility is a property you get after the destructor has finished. (The new phrasing could be misinterpreted as meaning that the object is inaccessible even from the destructor itself. Of course this is not true, but the potential for such misinterpretation could cause confusion.)

Copy link
Member

Choose a reason for hiding this comment

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

The insertion of the word "otherwise" before "inaccessible" would be one way to remedy that concern, but it's heading into the domain of wordiness.

This is literally a copy-paste, there's no need to have this duplication.
bors added a commit that referenced this pull request Dec 10, 2013
Many of them are small. Will squash on request, but I feel like it's easier
for everyone (easier to see and back out individual changes) this way.
@bors bors closed this Dec 10, 2013
@bors bors merged commit c935a88 into rust-lang:master Dec 10, 2013
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