Improve vec leak wording

Co-authored-by: Joshua Nelson <joshua@yottadb.com>
This commit is contained in:
Ivan Tham 2020-10-10 22:17:48 +08:00 committed by GitHub
parent 66369a6c70
commit 8688fa8250
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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