Skip to content

Try to improve PhantomData docs with more examples#24059

Merged
bors merged 1 commit into
rust-lang:masterfrom
nikomatsakis:issue-22914-phantomdata-docs
Apr 7, 2015
Merged

Try to improve PhantomData docs with more examples#24059
bors merged 1 commit into
rust-lang:masterfrom
nikomatsakis:issue-22914-phantomdata-docs

Conversation

@nikomatsakis

Copy link
Copy Markdown
Contributor

This probably needs a bit more work, but I wanted to try and capture some common use cases and be a bit more helpful.

r? @huonw
cc @steveklabnik

Comment thread src/libcore/marker.rs 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.

"may drop" and "could be dropped" are redundant here.

@steveklabnik

Copy link
Copy Markdown
Contributor

👍

Comment thread src/libcore/marker.rs

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.

Using *mut T and then acting as if it were a &T (the mut vs. not, specifically) is mildly disconcerting.

@huonw

huonw commented Apr 6, 2015

Copy link
Copy Markdown
Contributor

r=me with @apasel422's grammar note, and my mut-vs.-not nit (if you think it will improve it).

@nikomatsakis nikomatsakis force-pushed the issue-22914-phantomdata-docs branch from 2d708b0 to d166772 Compare April 6, 2015 13:39
@nikomatsakis

Copy link
Copy Markdown
Contributor Author

@bors r=huon rollup d166772

@bors

bors commented Apr 6, 2015

Copy link
Copy Markdown
Collaborator

📌 Commit d166772 has been approved by huon

@nikomatsakis

Copy link
Copy Markdown
Contributor Author

(Incorporated feedback.)

Manishearth added a commit to Manishearth/rust that referenced this pull request Apr 7, 2015
…a-docs, r=huon

 This probably needs a bit more work, but I wanted to try and capture some common use cases and be a bit more helpful.

r? @huonw
cc @steveklabnik
Manishearth added a commit to Manishearth/rust that referenced this pull request Apr 7, 2015
@Manishearth

Copy link
Copy Markdown
Member

needs ae64d8e

@bors bors merged commit d166772 into rust-lang:master Apr 7, 2015
@nikomatsakis nikomatsakis deleted the issue-22914-phantomdata-docs branch March 30, 2016 16:14
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