1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2025-12-22 22:51:12 +02:00

Fix minor inconsistencies and naming issues (#2563)

This commit is contained in:
Martin Huschenbett
2025-01-17 14:53:37 +08:00
committed by GitHub
parent 58bf01f1ef
commit 9e5c318a57
4 changed files with 7 additions and 7 deletions

View File

@@ -10,7 +10,7 @@ A slice gives you a view into a larger collection:
```rust,editable
fn main() {
let mut a: [i32; 6] = [10, 20, 30, 40, 50, 60];
let a: [i32; 6] = [10, 20, 30, 40, 50, 60];
println!("a: {a:?}");
let s: &[i32] = &a[2..4];