Skip to content

Commit

Permalink
Simplify language in speaker notes
Browse files Browse the repository at this point in the history
  • Loading branch information
mgeisler authored Jan 12, 2023
1 parent d85643d commit 67b65c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/basic-syntax/slices.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ fn main() {

* The same is true for the last index, so `&a[2..a.len()]` and `&a[2..]` are equal.

* We set `s` as a reference of `i32`s. Notice that the type of `s` no longer has an array length. This avoids type errors when performing computations on slices of different sizes.
* `s` is a reference to a slice of `i32`s. Notice that the type of `s` no longer mentions the array length. This allows us to performing computations on slices of different sizes.

* Slices always borrow from another object. In this example, `a` has to remain 'alive' so we can take a slice from it.

Expand Down

0 comments on commit 67b65c5

Please sign in to comment.