Skip to content

Commit

Permalink
Update 14-slices.mdx
Browse files Browse the repository at this point in the history
Improve one more wording. Sorry, missed it in Sobeston#254
  • Loading branch information
sobolevn authored Jul 20, 2024
1 parent 459a76f commit 4cf6ba2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ literals in Zig coerce to `[]const u8`.

Here, the syntax `x[n..m]` is used to create a slice from an array. This is
called **slicing**, and creates a slice of the elements starting at `x[n]` and
ending at `x[m - 1]`. This example uses a const slice, as the values to which
the slice points need not be modified.
ending at `x[m - 1]`. This example uses a const slice, as the values
pointed by the slice do not need to be modified.

<CodeBlock language="zig">{Slices}</CodeBlock>

Expand Down

0 comments on commit 4cf6ba2

Please sign in to comment.