diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2014-05-02 17:56:35 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2014-05-03 17:36:20 -0700 |
| commit | 9306e840f59ac22651c6177a89352bf5d607fcbd (patch) | |
| tree | 0136e7a07c4110e04de87e962dc75ffea51a71dc /src/libstd/slice.rs | |
| parent | 9ac9245564356d4fbefc6d71276423079bf5307b (diff) | |
| download | rust-9306e840f59ac22651c6177a89352bf5d607fcbd.tar.gz rust-9306e840f59ac22651c6177a89352bf5d607fcbd.zip | |
rustdoc: Migrate from sundown to hoedown
This primary fix brought on by this upgrade is the proper matching of the ``` and ~~~ doc blocks. This also moves hoedown to a git submodule rather than a bundled repository. Additionally, hoedown is stricter about code blocks, so this ended up fixing a lot of invalid code blocks (ending with " ```" instead of "```", or ending with "~~~~" instead of "~~~"). Closes #12776
Diffstat (limited to 'src/libstd/slice.rs')
| -rw-r--r-- | src/libstd/slice.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libstd/slice.rs b/src/libstd/slice.rs index 64f6b59be24..43159bcb44a 100644 --- a/src/libstd/slice.rs +++ b/src/libstd/slice.rs @@ -19,7 +19,7 @@ homogeneous types: ```rust let int_vector = [1,2,3]; let str_vector = ["one", "two", "three"]; - ``` +``` This is a big module, but for a high-level overview: @@ -44,7 +44,7 @@ a vector or a vector slice from the index interval `[a, b)`: let numbers = [0, 1, 2]; let last_numbers = numbers.slice(1, 3); // last_numbers is now &[1, 2] - ``` +``` Traits defined for the `~[T]` type, like `OwnedVector`, can only be called on such vectors. These methods deal with adding elements or otherwise changing @@ -57,7 +57,7 @@ of the vector: let mut numbers = vec![0, 1, 2]; numbers.push(7); // numbers is now vec![0, 1, 2, 7]; - ``` +``` ## Implementations of other traits @@ -79,7 +79,7 @@ let numbers = [0, 1, 2]; for &x in numbers.iter() { println!("{} is a number!", x); } - ``` +``` * `.mut_iter()` returns an iterator that allows modifying each value. * `.move_iter()` converts an owned vector into an iterator that |
