Skip to content

Rollup of 31 pull requests #22327

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

Closed
wants to merge 70 commits into from
Closed
Changes from 2 commits
Commits
Show all changes
70 commits
Select commit Hold shift + click to select a range
995b159
rustdoc: Show must_use attribute
sanxiyn Feb 12, 2015
00a6ff9
Adjusting default CPUs for iOS
vhbit Feb 12, 2015
9c686dc
Correct typo for 'underyling'
duaneedwards Feb 12, 2015
3d9528a
Unstabilise `words` for now.
huonw Feb 13, 2015
e4a9eb9
Remove `_VALUE` from the float extremes constants.
huonw Feb 13, 2015
b4a2861
Rename the "unsafe" lang item to "unsafe_cell"
lambda-fairy Feb 13, 2015
aef5551
Rename `unsafe_lang_item` to `unsafe_cell_lang_item`
lambda-fairy Feb 13, 2015
c5dba72
Remove reference to mailing list
iKevinY Feb 13, 2015
f28a333
Make if after colon lowercase
fhahn Feb 13, 2015
c6a647a
Replace map(|x| *x) with cloned().
ruuda Feb 13, 2015
1c7cb8b
Relpace map(|x| x.clone()) with cloned().
ruuda Feb 13, 2015
539866b
Replace map(|x| (*x).clone()) with cloned().
ruuda Feb 13, 2015
ce22f30
Make note of doc duplication with reexports
steveklabnik Feb 10, 2015
805a31f
Improve documentation for `Select::new()`.
steveklabnik Feb 13, 2015
4b25d75
Remove outdated information about copy/move from the reference
steveklabnik Feb 13, 2015
58a7d58
Re-word paragraph about enums and equality
steveklabnik Feb 13, 2015
114301f
Refer to LLVM rather than GCC wiki for atomic orderings
steveklabnik Feb 13, 2015
d414a39
Re-tag `slicing_syntax` as `Accepted`.
pnkfelix Feb 13, 2015
65eab6e
Add diverging functions to the book.
steveklabnik Feb 13, 2015
c9ad0d1
Revert incorrect map(|x| *x) -> cloned() substitutions.
ruuda Feb 13, 2015
a7d5c3f
Added all active features to the list in reference.md.
pnkfelix Feb 13, 2015
fb05f28
Add `#[rustc_error]` annotation, which causes trans to signal an error
nikomatsakis Feb 12, 2015
f48eda8
Fix small copy-paste typo
unode Feb 13, 2015
e478f66
Don't specify tuple layout.
steveklabnik Feb 13, 2015
9eb4436
Add link to module-level Option documentation.
steveklabnik Feb 13, 2015
ece19bf
Enhance static mut example in FFI chapter.
steveklabnik Feb 13, 2015
63a648c
Update intro.md to fix thread spawning example
diamondman Feb 13, 2015
b19fda0
Remove ExactSizeIterator from 64-bit ranges.
Feb 13, 2015
effad62
Add the build date to the reported version. #21957
brson Feb 12, 2015
3df8245
add test for #21909
Feb 13, 2015
148d90b
clarfiy reference with regards to the value of block expressions
steveklabnik Feb 13, 2015
f64d912
Generate grammar.html and link to it from the reference.
steveklabnik Feb 13, 2015
6d2e3d4
Note that Vec<T> is heap allocated.
steveklabnik Feb 13, 2015
5e3ae10
Dramatically expand the docs of std::raw.
huonw Feb 12, 2015
7a52932
Make std::raw::Repr an unsafe trait
Feb 13, 2015
657081b
Normalize range syntax used in concurrency.md
Manishearth Feb 14, 2015
931cb13
Rollup merge of #22132 - steveklabnik:gh16645, r=alexcrichton
steveklabnik Feb 14, 2015
99bd213
Rollup merge of #22201 - brson:version, r=nick29581
steveklabnik Feb 14, 2015
ea7a41b
Rollup merge of #22218 - huonw:raw-docs, r=steveklabnik,huonw
steveklabnik Feb 14, 2015
16d050c
Rollup merge of #22224 - sanxiyn:must-use, r=cmr
steveklabnik Feb 14, 2015
9548570
Rollup merge of #22229 - vhbit:ios-default-cpus, r=alexcrichton
steveklabnik Feb 14, 2015
41c7c4b
Rollup merge of #22248 - duaneedwards:patch-1, r=Gankro
steveklabnik Feb 14, 2015
ffb12b7
Rollup merge of #22253 - huonw:unstable-words, r=aturon
steveklabnik Feb 14, 2015
a170eef
Rollup merge of #22254 - huonw:float-value--, r=aturon
steveklabnik Feb 14, 2015
2182feb
Rollup merge of #22262 - lfairy:unsafe-cell-lang-item, r=alexcrichton
steveklabnik Feb 14, 2015
911373d
Rollup merge of #22263 - iKevinY:no-mailing-list, r=nikomatsakis
steveklabnik Feb 14, 2015
30e093b
Rollup merge of #22264 - fhahn:tiny-doc-fix2, r=Gankro
steveklabnik Feb 14, 2015
547424e
Rollup merge of #22268 - steveklabnik:improve_wait, r=nikomatsakis
steveklabnik Feb 14, 2015
8ce356a
Rollup merge of #22269 - steveklabnik:gh22136, r=alexcrichton
steveklabnik Feb 14, 2015
b887cbe
Rollup merge of #22271 - steveklabnik:gh22035, r=nikomatsakis
steveklabnik Feb 14, 2015
b61d2bb
Rollup merge of #22272 - steveklabnik:gh22064, r=alexcrichton
steveklabnik Feb 14, 2015
8ce6480
Rollup merge of #22274 - pnkfelix:retag-slicing-syntax-as-accepted, r…
steveklabnik Feb 14, 2015
7bc3b1f
Rollup merge of #22275 - steveklabnik:gh7538, r=huonw
steveklabnik Feb 14, 2015
8444428
Rollup merge of #22276 - ruud-v-a:map-clone, r=nikomatsakis
steveklabnik Feb 14, 2015
a2e1376
Rollup merge of #22277 - pnkfelix:reference-update-feature-gate-list,…
steveklabnik Feb 14, 2015
e9396b3
Rollup merge of #22278 - nikomatsakis:rustc-error, r=nikomatsakis
steveklabnik Feb 14, 2015
d4f8981
Rollup merge of #22280 - Unode:patch-1, r=steveklabnik
steveklabnik Feb 14, 2015
af3a8f8
Rollup merge of #22284 - steveklabnik:fix_another_lie, r=nikomatsakis
steveklabnik Feb 14, 2015
fb62664
Rollup merge of #22288 - steveklabnik:add_option_link, r=nikomatsakis
steveklabnik Feb 14, 2015
f029a74
Rollup merge of #22295 - steveklabnik:gh9980, r=alexcrichton
steveklabnik Feb 14, 2015
b0ed5b6
Rollup merge of #22298 - diamondman:patch-1, r=steveklabnik
steveklabnik Feb 14, 2015
fb655d0
Rollup merge of #22299 - bluss:range-64-is-not-exact-size, r=alexcric…
steveklabnik Feb 14, 2015
677e040
Rollup merge of #22302 - japaric:gh21909, r=brson
steveklabnik Feb 14, 2015
6d3cb62
Rollup merge of #22305 - steveklabnik:gh20948, r=alexcrichton
steveklabnik Feb 14, 2015
b1a7cde
Rollup merge of #22307 - steveklabnik:gh14849, r=huonw
steveklabnik Feb 14, 2015
ca7cc26
Rollup merge of #22308 - steveklabnik:gh19278, r=brson
steveklabnik Feb 14, 2015
fd86043
Rollup merge of #22324 - Manishearth:patch-1, r=steveklabnik
steveklabnik Feb 14, 2015
4ff6326
remove slicing_syntax features
steveklabnik Feb 14, 2015
6b918f1
Small fix for grammar.md
steveklabnik Feb 14, 2015
33b1cc2
Roll back one .cloned()
steveklabnik Feb 14, 2015
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
4 changes: 2 additions & 2 deletions src/doc/trpl/arrays-vectors-and-slices.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ languages.

A *vector* is a dynamic or "growable" array, implemented as the standard
library type [`Vec<T>`](../std/vec/) (we'll talk about what the `<T>` means
later). Vectors are to arrays what `String` is to `&str`. You can create them
with the `vec!` macro:
later). Vectors always allocate their data on the heap. Vectors are to slices
what `String` is to `&str`. You can create them with the `vec!` macro:

```{rust}
let v = vec![1, 2, 3]; // v: Vec<i32>
Expand Down