From 8bf77fa786aae4993fa923f0826529bfb9ce1166 Mon Sep 17 00:00:00 2001 From: Barosl Lee Date: Wed, 12 Nov 2014 03:36:09 +0900 Subject: 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. --- src/libstd/collections/hash/map.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/libstd/collections/hash/map.rs') diff --git a/src/libstd/collections/hash/map.rs b/src/libstd/collections/hash/map.rs index f55ce9ba462..b7473e7bd2c 100644 --- a/src/libstd/collections/hash/map.rs +++ b/src/libstd/collections/hash/map.rs @@ -1238,9 +1238,9 @@ impl, V: Clone, S, H: Hasher> HashMap { /// Return a copy of the value corresponding to the key. /// - /// # Failure + /// # Panics /// - /// Fails if the key is not present. + /// Panics if the key is not present. /// /// # Example /// -- cgit 1.4.1-3-g733a5