about summary refs log tree commit diff
diff options
context:
space:
mode:
authorIvan Tham <pickfire@riseup.net>2020-10-10 22:17:48 +0800
committerGitHub <noreply@github.com>2020-10-10 22:17:48 +0800
commit8688fa825016f3bcf320b1e9b499616e13bb64d2 (patch)
treeb3db42ed3e61747ade91e9c116f021fb30a5e655
parent66369a6c70d470872f0a64633e71d91e5385a6c6 (diff)
downloadrust-8688fa825016f3bcf320b1e9b499616e13bb64d2.tar.gz
rust-8688fa825016f3bcf320b1e9b499616e13bb64d2.zip
Improve vec leak wording
Co-authored-by: Joshua Nelson <joshua@yottadb.com>
-rw-r--r--library/alloc/src/vec.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/alloc/src/vec.rs b/library/alloc/src/vec.rs
index fb43f214461..5e68f76693f 100644
--- a/library/alloc/src/vec.rs
+++ b/library/alloc/src/vec.rs
@@ -1477,7 +1477,7 @@ impl<T> Vec<T> {
     /// may be chosen to be `'static`.
     ///
     /// This function is similar to the [`leak`][Box::leak] function on [`Box`]
-    /// except there are no way to undo the leak yet.
+    /// except that there is no way to recover the leaked memory.
     ///
     /// This function is mainly useful for data that lives for the remainder of
     /// the program's life. Dropping the returned reference will cause a memory