about summary refs log tree commit diff
path: root/src/libstd/io
diff options
context:
space:
mode:
authorBarosl Lee <vcs@barosl.com>2014-11-12 03:36:09 +0900
committerBarosl Lee <vcs@barosl.com>2014-11-12 03:36:09 +0900
commit8bf77fa786aae4993fa923f0826529bfb9ce1166 (patch)
treea7ac9d644b4e116aa78ac337c749f73ebdcdadf3 /src/libstd/io
parent5d29209bda553e4d23a8b499d2ceb8db5c4f8be5 (diff)
downloadrust-8bf77fa786aae4993fa923f0826529bfb9ce1166.tar.gz
rust-8bf77fa786aae4993fa923f0826529bfb9ce1166.zip
Fix remaining documentation to reflect fail!() -> panic!()
Throughout the docs, "failure" was replaced with "panics" if it means a
task panic. Otherwise, it remained as is, or changed to "errors" to
clearly differentiate it from a task panic.
Diffstat (limited to 'src/libstd/io')
-rw-r--r--src/libstd/io/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/io/mod.rs b/src/libstd/io/mod.rs
index 31eab4363d0..e9c0ffaa69e 100644
--- a/src/libstd/io/mod.rs
+++ b/src/libstd/io/mod.rs
@@ -897,9 +897,9 @@ impl<'a> Reader for &'a mut Reader+'a {
 /// Similar to `slice()` except this function only bounds the slice on the
 /// capacity of `v`, not the length.
 ///
-/// # Failure
+/// # Panics
 ///
-/// Fails when `start` or `end` point outside the capacity of `v`, or when
+/// Panics when `start` or `end` point outside the capacity of `v`, or when
 /// `start` > `end`.
 // Private function here because we aren't sure if we want to expose this as
 // API yet. If so, it should be a method on Vec.