Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/ch04-03-slices.md
Original file line number Diff line number Diff line change
Expand Up @@ -306,9 +306,9 @@ part of an array. We’d do so like this:
```rust
let a = [1, 2, 3, 4, 5];

let slice = &a[1..3];
let slice = &a[2..4];

assert_eq!(slice, &[2, 3]);
assert_eq!(slice, &[3, 4]);
```

This slice has the type `&[i32]`. It works the same way as string slices do, by
Expand Down