summary refs log tree commit diff
path: root/library/alloc/src
diff options
context:
space:
mode:
authormental <m3nta1@yahoo.com>2020-08-29 07:39:03 +0100
committerGitHub <noreply@github.com>2020-08-29 07:39:03 +0100
commit42fb27001e07e832cb40604c7daeaa6aada07675 (patch)
tree3817872b9d37272bbca57d85102abb42e0c0f8a9 /library/alloc/src
parentf03d0b38d6a33a64307d83f8ddd3df8ef57ca537 (diff)
downloadrust-42fb27001e07e832cb40604c7daeaa6aada07675.tar.gz
rust-42fb27001e07e832cb40604c7daeaa6aada07675.zip
typo
Co-authored-by: Andrew Hickman <andrew.hickman1@sky.com>
Diffstat (limited to 'library/alloc/src')
-rw-r--r--library/alloc/src/rc.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/alloc/src/rc.rs b/library/alloc/src/rc.rs
index 76266d77bb0..7dbdc8f6017 100644
--- a/library/alloc/src/rc.rs
+++ b/library/alloc/src/rc.rs
@@ -326,7 +326,7 @@ impl<T> Rc<T> {
     }
 
     /// Constructs a new `Rc<T>` using a weak reference to itself. Attempting
-    /// to upgrade the weak reference before this function retuns will result
+    /// to upgrade the weak reference before this function returns will result
     /// in a `None` value. However, the weak reference may be cloned freely and
     /// stored for use at a later time.
     #[inline]