Skip to content

Add doc examples for OsStr, OsString. - #40458

Merged
bors merged 6 commits into
rust-lang:masterfrom
frewsxcv:frewsxcv-osstr
Mar 17, 2017
Merged

Add doc examples for OsStr, OsString.#40458
bors merged 6 commits into
rust-lang:masterfrom
frewsxcv:frewsxcv-osstr

Conversation

@frewsxcv

Copy link
Copy Markdown
Contributor

No description provided.

@GuillaumeGomezGuillaumeGomez left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Just one nit.

Comment threadsrc/libstd/ffi/os_str.rs Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The rust annotation is useless.

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

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

The API documentation conventions don't mention that we have to remove these annotations.

https://github.com/rust-lang/rfcs/blob/master/text/1574-more-api-documentation-conventions.md

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I removed the annotations in a lot of places, so please don't add them back.

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

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

Latest force push removes them.

I removed the annotations in a lot of places, so please don't add them back.

Sure, but just because you removed the annotations doesn't mean we should enforce this everywhere. Personally, I prefer to leave in the rust annotation.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Might be worth to start an official statement about this with @rust-lang/docs.

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.

I thought that the RFC stated to not use them more strongly, but apparently it does not.

Comment threadsrc/libstd/ffi/os_str.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.

reserve_exact -> reserve

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

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

Good catches, thanks!

Comment threadsrc/libstd/ffi/os_str.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.

reserve -> reserve_exact

@frewsxcv

Copy link
Copy Markdown
ContributorAuthor

Comments have been addressed.

@frewsxcv

Copy link
Copy Markdown
ContributorAuthor

@GuillaumeGomez Everything look good here?

@frewsxcv
frewsxcv dismissed GuillaumeGomez’s stale reviewMarch 14, 2017 22:27

Comments have been addressed.

@bors

bors commented Mar 15, 2017

Copy link
Copy Markdown
Collaborator

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

@GuillaumeGomez

Copy link
Copy Markdown
Member

r=me once conflicts fixed.

@frewsxcv

Copy link
Copy Markdown
ContributorAuthor

@bors r=GuillaumeGomez rollup

@bors

bors commented Mar 17, 2017

Copy link
Copy Markdown
Collaborator

📌 Commit bc6eecd has been approved by GuillaumeGomez

frewsxcv added a commit to frewsxcv/rust that referenced this pull request Mar 17, 2017
…eGomez
Add doc examples for `OsStr`, `OsString`.
None
@frewsxcvfrewsxcv mentioned this pull request Mar 17, 2017
frewsxcv added a commit to frewsxcv/rust that referenced this pull request Mar 17, 2017
…eGomez
Add doc examples for `OsStr`, `OsString`.
None
@frewsxcvfrewsxcv mentioned this pull request Mar 17, 2017
frewsxcv added a commit to frewsxcv/rust that referenced this pull request Mar 17, 2017
…eGomez
Add doc examples for `OsStr`, `OsString`.
None
@frewsxcvfrewsxcv mentioned this pull request Mar 17, 2017
bors added a commit that referenced this pull request Mar 17, 2017
@bors
bors merged commit bc6eecd into rust-lang:masterMar 17, 2017
Sign up for freeto 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

@frewsxcv@bors@GuillaumeGomez@steveklabnik@ollie27