]> git.lizzy.rs Git - rust.git/commit
Improve documentation for slice swap/copy/clone operations.
authorCorey Farwell <coreyf@rwell.org>
Thu, 23 Nov 2017 00:54:06 +0000 (19:54 -0500)
committerCorey Farwell <coreyf@rwell.org>
Fri, 24 Nov 2017 15:09:05 +0000 (07:09 -0800)
commit1ad38f2ce5b1075b64e586a6f383c431053126a6
tree4c786f02792ea1826950ce746636f162cba6cd75
parent85d50ce1c72dc577fad26a81acea390c60bb48c2
Improve documentation for slice swap/copy/clone operations.

Fixes #45636.

- Demonstrate how to use these operations with slices of differing
  lengths
- Demonstrate how to swap/copy/clone sub-slices of a slice using
  `split_at_mut`
src/liballoc/slice.rs