Skip to content

Commit 8688fa8

Browse files
pickfireJoshua Nelson
and
Joshua Nelson
authoredOct 10, 2020
Improve vec leak wording
Co-authored-by: Joshua Nelson <joshua@yottadb.com>
1 parent 66369a6 commit 8688fa8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎library/alloc/src/vec.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1477,7 +1477,7 @@ impl<T> Vec<T> {
14771477
/// may be chosen to be `'static`.
14781478
///
14791479
/// This function is similar to the [`leak`][Box::leak] function on [`Box`]
1480-
/// except there are no way to undo the leak yet.
1480+
/// except that there is no way to recover the leaked memory.
14811481
///
14821482
/// This function is mainly useful for data that lives for the remainder of
14831483
/// the program's life. Dropping the returned reference will cause a memory

0 commit comments

Comments
 (0)