From 8b8c014608b7f4430e2977434c19f108658384dd Mon Sep 17 00:00:00 2001 From: Leo Lin Date: Fri, 13 Oct 2023 17:34:35 +0800 Subject: [PATCH] docs: fix a typo --- src/primitives/array.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/primitives/array.md b/src/primitives/array.md index 5f5e699445..704a2131c7 100644 --- a/src/primitives/array.md +++ b/src/primitives/array.md @@ -6,7 +6,7 @@ at compile time, is part of their type signature `[T; length]`. Slices are similar to arrays, but their length is not known at compile time. Instead, a slice is a two-word object; the first word is a pointer to the data, -the second word the length of the slice. The word size is the same as usize, +the second word is the length of the slice. The word size is the same as usize, determined by the processor architecture, e.g. 64 bits on an x86-64. Slices can be used to borrow a section of an array and have the type signature `&[T]`.