]> git.lizzy.rs Git - rust.git/commitdiff
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)
 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).

1  2 
src/libcollections/vec.rs

Simple merge