Skip to content

Commit 94e9175

Browse files
Fix array size bug introduced in previous commit.
After changing `bytestring` into `byte string` in one of the byte string literals, I forgot to adjust the array size to compensate for an extra space.
1 parent 44080b7 commit 94e9175

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/std/str.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ use std::str;
120120
121121
fn main() {
122122
// Note that this is not actually a `&str`
123-
let bytestring: &[u8; 20] = b"this is a byte string";
123+
let bytestring: &[u8; 21] = b"this is a byte string";
124124
125125
// Byte arrays don't have the `Display` trait, so printing them is a bit limited
126126
println!("A byte string: {:?}", bytestring);

0 commit comments

Comments
 (0)