Skip to content

Commit 77aeb7b

Browse files
authored
fix typo in primitive-types section on slices
1 parent 5c2a5d4 commit 77aeb7b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/doc/book/primitive-types.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ A ‘slice’ is a reference to (or “view” into) another data structure. The
163163
useful for allowing safe, efficient access to a portion of an array without
164164
copying. For example, you might want to reference only one line of a file read
165165
into memory. By nature, a slice is not created directly, but from an existing
166-
variable binding. Slices have a defined length, can be mutable or immutable.
166+
variable binding. Slices have a defined length, and can be mutable or immutable.
167167

168168
Internally, slices are represented as a pointer to the beginning of the data
169169
and a length.

0 commit comments

Comments
 (0)