From f9b36b4f65ca1c4b73d1692350ada59d05aacece Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Sun, 23 May 2021 13:26:51 +0200 Subject: [PATCH] fix comment Co-authored-by: bjorn3 --- compiler/rustc_middle/src/mir/interpret/allocation.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/rustc_middle/src/mir/interpret/allocation.rs b/compiler/rustc_middle/src/mir/interpret/allocation.rs index cf832ee0f7a..ee3902991e9 100644 --- a/compiler/rustc_middle/src/mir/interpret/allocation.rs +++ b/compiler/rustc_middle/src/mir/interpret/allocation.rs @@ -99,7 +99,7 @@ impl AllocRange { // The constructors are all without extra; the extra gets added by a machine hook later. impl Allocation { - /// Creates a read-only allocation initialized by the given bytes + /// Creates an allocation initialized by the given bytes pub fn from_bytes<'a>( slice: impl Into>, align: Align,