]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #25087 - nham:improve_vec_docs, r=Gankro
authorManish Goregaokar <manishsmail@gmail.com>
Tue, 5 May 2015 03:54:03 +0000 (09:24 +0530)
committerManish Goregaokar <manishsmail@gmail.com>
Tue, 5 May 2015 03:54:03 +0000 (09:24 +0530)
commit86a858add58168faf42838e9852a0b5b012cd6be
tree378a6ead43c2860b79aa9fa46ab6b6a341506b8f
parent74130520fbd41755c0220436dc79a7b59863bdd7
parent51463c3b17749801e80513d297351ede0f683418
Rollup merge of #25087 - nham:improve_vec_docs, r=Gankro

 This commit does two things: it adds an example for indexing vectors, and it changes the \"Examples\" section to use full sentences.

This change was spurred by someone in the #rust IRC channel asking if there was a `.set()` method for changing the `i`-th value of a vector (they had missed that `Vec` implements `IndexMut`, which is easy to do if you're not aware of that trait).
src/libcollections/vec.rs