Skip to content

Commit f9b36b4

Browse files
RalfJungbjorn3
andauthored
fix comment
Co-authored-by: bjorn3 <[email protected]>
1 parent 461b2f8 commit f9b36b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_middle/src/mir/interpret/allocation.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ impl AllocRange {
9999

100100
// The constructors are all without extra; the extra gets added by a machine hook later.
101101
impl<Tag> Allocation<Tag> {
102-
/// Creates a read-only allocation initialized by the given bytes
102+
/// Creates an allocation initialized by the given bytes
103103
pub fn from_bytes<'a>(
104104
slice: impl Into<Cow<'a, [u8]>>,
105105
align: Align,

0 commit comments

Comments
 (0)