]> git.lizzy.rs Git - rust.git/commitdiff
Update library/core/src/alloc/mod.rs
authorOli Scherer <github35764891676564198441@oli-obk.de>
Sat, 26 Dec 2020 17:06:04 +0000 (18:06 +0100)
committerGitHub <noreply@github.com>
Sat, 26 Dec 2020 17:06:04 +0000 (18:06 +0100)
Co-authored-by: Ralf Jung <post@ralfj.de>
library/core/src/alloc/mod.rs

index fc89046bc427b6676dde6276d5439e05f1372bec..4aa166e6aa15b7bd34d06d46dbc8775d25481700 100644 (file)
@@ -96,7 +96,7 @@ pub unsafe trait AllocRef {
     ///
     /// Note that you may not rely on this method actually getting called, even if there are calls
     /// to it in the source. The optimizer may detect unused allocations that it can either
-    /// eliminate entirely or move to the stack and thus never invoke the allocator here. The
+    /// eliminate entirely or move to the stack and thus never invoke the allocator. The
     /// optimizer may further assume that allocation is infallible, so code that used to fail due
     /// to allocator failures may now suddenly work because the optimizer worked around the
     /// need for an allocation.