Skip to content

Improve docs & doc examples for HashSet. - #43585

Merged
bors merged 7 commits into
rust-lang:masterfrom
frewsxcv:frewsxcv-hashset-docs
Aug 2, 2017
Merged

Improve docs & doc examples for HashSet.#43585
bors merged 7 commits into
rust-lang:masterfrom
frewsxcv:frewsxcv-hashset-docs

Conversation

@frewsxcv

Copy link
Copy Markdown
Contributor

No description provided.

Comment threadsrc/libstd/collections/hash/set.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.

Shouldn't it be more accurate to check if the capacity is equal to 10 instead of >= ?

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.

In general, the allocator may give you more than you asked for.

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.

Hum ok.

@GuillaumeGomez

Copy link
Copy Markdown
Member

Just a small nit. Also, is it normal that you have this much commits?

@steveklabniksteveklabnik left a comment

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.

travis is failing, but overall looks good to me

@QuietMisdreavus

Copy link
Copy Markdown
Contributor

Travis says the build was cancelled before it ever started (??) but otherwise the change looks good.

@frewsxcvfrewsxcv closed this Aug 1, 2017
@frewsxcvfrewsxcv reopened this Aug 1, 2017
@frewsxcv
frewsxcvforce-pushed the frewsxcv-hashset-docs branch from 00d72a1 to d9df296CompareAugust 1, 2017 23:51
@frewsxcv

Copy link
Copy Markdown
ContributorAuthor

rebased, tests pass

@bors r=steveklabnik,quietmisdreavus rollup

@bors

bors commented Aug 2, 2017

Copy link
Copy Markdown
Collaborator

📌 Commit d9df296 has been approved by steveklabnik,quietmisdreavus

frewsxcv added a commit to frewsxcv/rust that referenced this pull request Aug 2, 2017
…teveklabnik,quietmisdreavus
Improve docs & doc examples for HashSet.
None
@frewsxcvfrewsxcv mentioned this pull request Aug 2, 2017
bors added a commit that referenced this pull request Aug 2, 2017
Rollup of 6 pull requests
- Successful merges: #43389, #43423, #43581, #43585, #43597, #43598
- Failed merges:
@bors
bors merged commit d9df296 into rust-lang:masterAug 2, 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@GuillaumeGomez@QuietMisdreavus@bors@steveklabnik