Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down