about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2014-12-29 16:36:14 -0800
committerAlex Crichton <alex@alexcrichton.com>2014-12-29 16:36:14 -0800
commit21f661a6ef813233aca16f0cbec939256640f021 (patch)
tree74e79d349dab6a5b5b6a3d80c9dc6b0889fec424
parent3801c2678fc1cffd310a36be86ac0a9b9d3a502d (diff)
parent2fefb22dca43d976c5cc65c88aa78573866e48a0 (diff)
downloadrust-21f661a6ef813233aca16f0cbec939256640f021.tar.gz
rust-21f661a6ef813233aca16f0cbec939256640f021.zip
rollup merge of #20239: YawarRaza7349/patch-1
-rw-r--r--src/libcore/result.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcore/result.rs b/src/libcore/result.rs
index 8014b4dc89d..bd1c6dbcf1e 100644
--- a/src/libcore/result.rs
+++ b/src/libcore/result.rs
@@ -332,7 +332,7 @@ impl<T, E> Result<T, E> {
 
     /// Convert from `Result<T, E>` to `Option<E>`
     ///
-    /// Converts `self` into an `Option<T>`, consuming `self`,
+    /// Converts `self` into an `Option<E>`, consuming `self`,
     /// and discarding the value, if any.
     ///
     /// # Example