From 9f0503e4a60d73b6a8404e4f9c7678e162173305 Mon Sep 17 00:00:00 2001 From: Finn Bear Date: Sat, 22 Oct 2022 12:26:47 -0700 Subject: [PATCH] Fix typo in docs of `String::leak`. --- library/alloc/src/string.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/alloc/src/string.rs b/library/alloc/src/string.rs index 209abfac6bbf9..c436adf70067a 100644 --- a/library/alloc/src/string.rs +++ b/library/alloc/src/string.rs @@ -1851,7 +1851,7 @@ impl String { } /// Consumes and leaks the `String`, returning a mutable reference to the contents, - /// `&'a mut str`. + /// `&'static mut str`. /// /// This is mainly useful for data that lives for the remainder of /// the program's life. Dropping the returned reference will cause a memory