about summary refs log tree commit diff
path: root/src/libcore
diff options
context:
space:
mode:
authorAdolfo OchagavĂ­a <aochagavia92@gmail.com>2014-06-05 09:33:49 +0200
committerAdolfo OchagavĂ­a <aochagavia92@gmail.com>2014-06-06 09:09:58 +0200
commit7d07a1e74b1f0741777272e533b7eff452eb01e4 (patch)
tree52d09b01a78380e4f38b8b4511df748c5d79ed93 /src/libcore
parentae9577052d99203806fd83c84669d25fbe0af367 (diff)
downloadrust-7d07a1e74b1f0741777272e533b7eff452eb01e4.tar.gz
rust-7d07a1e74b1f0741777272e533b7eff452eb01e4.zip
Fix documentation for `slice()`
Fixes https://github.com/mozilla/rust/issues/14577
Diffstat (limited to 'src/libcore')
-rw-r--r--src/libcore/slice.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcore/slice.rs b/src/libcore/slice.rs
index 6312d9115ef..0257911e8c0 100644
--- a/src/libcore/slice.rs
+++ b/src/libcore/slice.rs
@@ -366,9 +366,9 @@ impl<T> Container for ~[T] {
 /// Extension methods for vectors
 pub trait ImmutableVector<'a, T> {
     /**
-     * Returns a slice of self between `start` and `end`.
+     * Returns a slice of self spanning the interval [`start`, `end`).
      *
-     * Fails when `start` or `end` point outside the bounds of self,
+     * Fails when the slice (or part of it) is outside the bounds of self,
      * or when `start` > `end`.
      */
     fn slice(&self, start: uint, end: uint) -> &'a [T];