From 73c362a8c976f7d5ebb8dd2adc93d81da430739c Mon Sep 17 00:00:00 2001 From: Azhar Rizqullah <98894677+kaiserinn@users.noreply.github.com> Date: Sun, 6 Jul 2025 01:54:51 +0800 Subject: [PATCH] Update 14-slices.mdx --- .../version-0.13/01-language-basics/14-slices.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/versioned_docs/version-0.13/01-language-basics/14-slices.mdx b/website/versioned_docs/version-0.13/01-language-basics/14-slices.mdx index 6bfa031..c79b28d 100644 --- a/website/versioned_docs/version-0.13/01-language-basics/14-slices.mdx +++ b/website/versioned_docs/version-0.13/01-language-basics/14-slices.mdx @@ -6,7 +6,7 @@ import Slices2 from "!!raw-loader!./14.slices-2.zig"; # Slices Slices can be thought of many-item pointers (`[*]T`) with a length (`usize`). -These use the syntax `[]T`. Slices are easier to use safely and more convinient +These use the syntax `[]T`. Slices are easier to use safely and more convenient than many-item pointers, as they store the valid length of the buffer with them. Slices are sometimes referred to as "fat pointers" as they're typically double the size of a normal pointer. Slices are the most common way to pass around