about summary refs log tree commit diff
path: root/src/libcore
diff options
context:
space:
mode:
authorClément RENAULT <crenault@vente-privee.com>2018-07-09 14:52:32 +0200
committerClément RENAULT <crenault@vente-privee.com>2018-07-09 14:52:32 +0200
commitc8f0e6f210caccdaea7dc59fd970c81018ddfb00 (patch)
tree59ddf035c6501185232832e83708fd17eecd7169 /src/libcore
parentaf87a3594a9f852de0eb7fec7a2f2e7c5fdb4fe8 (diff)
downloadrust-c8f0e6f210caccdaea7dc59fd970c81018ddfb00.tar.gz
rust-c8f0e6f210caccdaea7dc59fd970c81018ddfb00.zip
Fix the documentation of `Option::replace`
Diffstat (limited to 'src/libcore')
-rw-r--r--src/libcore/option.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcore/option.rs b/src/libcore/option.rs
index db0a807d152..f3e823670aa 100644
--- a/src/libcore/option.rs
+++ b/src/libcore/option.rs
@@ -848,7 +848,7 @@ impl<T> Option<T> {
 
     /// Replaces the actual value in the option by the value given in parameter,
     /// returning the old value if present,
-    /// leaving a `Some` in its place without deinitializing either one.
+    /// leaving a [`Some`] in its place without deinitializing either one.
     ///
     /// [`Some`]: #variant.Some
     ///