Skip to content

TRPL: ownership, borrowing, and lifetimes#24782

Merged
bors merged 1 commit into
rust-lang:masterfrom
steveklabnik:doc_ownership
May 6, 2015
Merged

TRPL: ownership, borrowing, and lifetimes#24782
bors merged 1 commit into
rust-lang:masterfrom
steveklabnik:doc_ownership

Conversation

@steveklabnik

Copy link
Copy Markdown
Contributor

Also, as @huonw guessed, move semantics really does make more sense as
a sub-chapter of ownership.

@rust-highfive

Copy link
Copy Markdown
Contributor

r? @nikomatsakis

(rust_highfive has picked a reviewer for you, use r? to override)

Comment thread src/doc/trpl/lifetimes.md Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Did you mean "every reference has some lifetime associated with it"?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

yes.

@steveklabnik

Copy link
Copy Markdown
Contributor Author

Nits addressed.

Comment thread src/doc/trpl/lifetimes.md Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

s/zero cost abstraction/zero-cost abstraction/

@nikomatsakis

Copy link
Copy Markdown
Contributor

@steveklabnik r+ from me. I read it over and mostly thought it seemed good. There are some details (like returning references, notably) that are not really covered, perhaps those are better left to specific guides though.

@nikomatsakis

Copy link
Copy Markdown
Contributor

I agree with the missing - though :)

Also, as @huonw guessed, move semantics really _does_ make more sense as
a sub-chapter of ownership.
@steveklabnik

Copy link
Copy Markdown
Contributor Author

@bors: r=nikomatsakis rollup

@bors

bors commented May 5, 2015

Copy link
Copy Markdown
Collaborator

📌 Commit ab3cb8c has been approved by nikomatsakis

@steveklabnik

Copy link
Copy Markdown
Contributor Author

Yeah, adding more complicated stuff in the future is certainly important.

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

Also, as @huonw guessed, move semantics really _does_ make more sense as
a sub-chapter of ownership.
bors added a commit that referenced this pull request May 5, 2015
steveklabnik added a commit to steveklabnik/rust that referenced this pull request May 5, 2015
…atsakis

Also, as @huonw guessed, move semantics really _does_ make more sense as
a sub-chapter of ownership.
bors added a commit that referenced this pull request May 5, 2015
@bors bors merged commit ab3cb8c into rust-lang:master May 6, 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.

7 participants