diff --git a/src/doc/reference.md b/src/doc/reference.md index a3e13acccae28..927bb1e0cb506 100644 --- a/src/doc/reference.md +++ b/src/doc/reference.md @@ -3335,8 +3335,8 @@ is often called ‘unit’ or ‘the unit type’. Rust has two different types for a list of items: -* `[T; N]`, an 'array'. -* `&[T]`, a 'slice'. +* `[T; N]`, an 'array' +* `&[T]`, a 'slice' An array has a fixed size, and can be allocated on either the stack or the heap.