diff options
| author | Manish Goregaokar <manishsmail@gmail.com> | 2015-01-27 22:24:04 +0530 |
|---|---|---|
| committer | Manish Goregaokar <manishsmail@gmail.com> | 2015-01-27 22:24:04 +0530 |
| commit | 335e8af98ad40aa1a426edae5b20851abf6c9c2a (patch) | |
| tree | 3ca6cdddddf045670b49f3895793d84a94f16683 /src/rustllvm/RustWrapper.cpp | |
| parent | 4af4b377a0217b063f9da673ef2d0fbd083ac24d (diff) | |
| parent | ebd2d8db76ca29a728ee31d6eb2c7a9e4900e74f (diff) | |
| download | rust-335e8af98ad40aa1a426edae5b20851abf6c9c2a.tar.gz rust-335e8af98ad40aa1a426edae5b20851abf6c9c2a.zip | |
Rollup merge of #21625 - carols10cents:sliceext-examples, r=alexcrichton
Hi! I added some examples to some SliceExt methods that didn't have any. I'm looking forward to feedback and I'm happy to change anything-- it looks like the doc conventions are still a bit in flux, based on the discussions going on in [rfc 505](https://github.com/rust-lang/rfcs/pull/505). I was most unsure about examples for methods that return iterators over slices... I wanted to use asserts on the result of calling `.next()` like in [this permutations example](https://github.com/carols10cents/rust/blob/804c1446b3b0afd84851339d8ee2be1dca8f7713/src/libcollections/slice.rs#L608-L617), but then it gets all cluttered up with lifetime stuff... so I went with iterating and printing and mentioning what the expected printed output is like in [this chunks example](https://github.com/carols10cents/rust/blob/804c1446b3b0afd84851339d8ee2be1dca8f7713/src/libcollections/slice.rs#L297-L304)... any ideas for the best ways to do this are appreciated. Thank you! :heart:
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
