From 4cf6ba2efa4308ad1cdaa2cbdceae35c3cf73df2 Mon Sep 17 00:00:00 2001 From: sobolevn Date: Sat, 20 Jul 2024 20:52:41 +0300 Subject: [PATCH] Update 14-slices.mdx Improve one more wording. Sorry, missed it in https://github.com/Sobeston/zig.guide/pull/254 --- .../version-0.12/01-language-basics/14-slices.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/website/versioned_docs/version-0.12/01-language-basics/14-slices.mdx b/website/versioned_docs/version-0.12/01-language-basics/14-slices.mdx index 063b81e5..b40f90da 100644 --- a/website/versioned_docs/version-0.12/01-language-basics/14-slices.mdx +++ b/website/versioned_docs/version-0.12/01-language-basics/14-slices.mdx @@ -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. {Slices}