Skip to content

Commit 6709bee

Browse files
authored
Merge pull request #1752 from wtlin1228/docs/arrays-and-slices-typo
docs: fix a typo
2 parents 8eb3a01 + 8b8c014 commit 6709bee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/primitives/array.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ at compile time, is part of their type signature `[T; length]`.
66

77
Slices are similar to arrays, but their length is not known at compile time.
88
Instead, a slice is a two-word object; the first word is a pointer to the data,
9-
the second word the length of the slice. The word size is the same as usize,
9+
the second word is the length of the slice. The word size is the same as usize,
1010
determined by the processor architecture, e.g. 64 bits on an x86-64. Slices can
1111
be used to borrow a section of an array and have the type signature `&[T]`.
1212

0 commit comments

Comments
 (0)