Skip to content
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

Rollup of 8 pull requests #48294

Merged
merged 23 commits into from
Feb 17, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
a58d1b5
trim the body of doctests after partitioning
QuietMisdreavus Feb 9, 2018
70b5c45
add tests for the doctest construction functionality
QuietMisdreavus Feb 9, 2018
7277993
fix playground test for newly-trimmed doctests
QuietMisdreavus Feb 9, 2018
9931583
Make primitive types docs relevant
GuillaumeGomez Feb 11, 2018
56e15de
Make primitive types docs relevant (unsigned)
antoyo Feb 11, 2018
146b81c
Fix tidy errors
antoyo Feb 12, 2018
9a30673
Add missing feature
GuillaumeGomez Feb 12, 2018
e1e79d3
Remove "empty buffer" doc in read_until
zombiezen Feb 15, 2018
ba6a6d0
Fix condvar example
GuillaumeGomez Feb 15, 2018
137f5bc
spelling fix in comment
steveklabnik Feb 15, 2018
3bf989f
Add link to yield_now
dns2utf8 Feb 16, 2018
e812da0
Force the link to std::thread::yield_now()
dns2utf8 Feb 16, 2018
a58409d
Notify users that this example is shared through integer types
GuillaumeGomez Feb 14, 2018
c670ae6
Remove unneeded string allocations
Feb 16, 2018
22aecb9
Clarify contiguity of Vec's elements.
SergioBenitez Feb 17, 2018
8aa2852
Rollup merge of #48095 - QuietMisdreavus:doctest-assembly, r=Guillaum…
GuillaumeGomez Feb 17, 2018
6db06f5
Rollup merge of #48152 - antoyo:primitive-docs-relevant, r=QuietMisdr…
GuillaumeGomez Feb 17, 2018
62d6ba4
Rollup merge of #48234 - zombiezen:patch-1, r=steveklabnik
GuillaumeGomez Feb 17, 2018
3672caf
Rollup merge of #48239 - GuillaumeGomez:fix-condvar-example, r=QuietM…
GuillaumeGomez Feb 17, 2018
01c7f3a
Rollup merge of #48243 - rust-lang:steveklabnik-patch-1, r=kennytm
GuillaumeGomez Feb 17, 2018
7dd8c09
Rollup merge of #48260 - dns2utf8:add_link_to_yield, r=kennytm
GuillaumeGomez Feb 17, 2018
c4f0011
Rollup merge of #48284 - crawford:string, r=sfackler
GuillaumeGomez Feb 17, 2018
47db61a
Rollup merge of #48286 - SergioBenitez:master, r=BurntSushi
GuillaumeGomez Feb 17, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/liballoc/vec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -231,9 +231,9 @@ use Bound::{Excluded, Included, Unbounded};
///
/// If a `Vec` *has* allocated memory, then the memory it points to is on the heap
/// (as defined by the allocator Rust is configured to use by default), and its
/// pointer points to [`len`] initialized elements in order (what you would see
/// if you coerced it to a slice), followed by [`capacity`]` - `[`len`]
/// logically uninitialized elements.
/// pointer points to [`len`] initialized, contiguous elements in order (what
/// you would see if you coerced it to a slice), followed by [`capacity`]` -
/// `[`len`] logically uninitialized, contiguous elements.
///
/// `Vec` will never perform a "small optimization" where elements are actually
/// stored on the stack for two reasons:
Expand Down Expand Up @@ -281,8 +281,8 @@ use Bound::{Excluded, Included, Unbounded};
/// not break, however: using `unsafe` code to write to the excess capacity,
/// and then increasing the length to match, is always valid.
///
/// `Vec` does not currently guarantee the order in which elements are dropped
/// (the order has changed in the past, and may change again).
/// `Vec` does not currently guarantee the order in which elements are dropped.
/// The order has changed in the past and may change again.
///
/// [`vec!`]: ../../std/macro.vec.html
/// [`Index`]: ../../std/ops/trait.Index.html
Expand Down
Loading