diff --git a/doc/langref.html.in b/doc/langref.html.in index 46b325832b..60ba09d391 100644 --- a/doc/langref.html.in +++ b/doc/langref.html.in @@ -1087,7 +1087,7 @@ unwrapped == 1234
a is false, returns false
- without evaluating b. Otherwise, retuns b.
+ without evaluating b. Otherwise, returns b.
false and true == false
@@ -1102,7 +1102,7 @@ unwrapped == 1234
a is true, returns true
- without evaluating b. Otherwise, retuns b.
+ without evaluating b. Otherwise, returns b.
false or true == true
@@ -1483,7 +1483,7 @@ test "pointer array access" {
}
test "pointer slicing" {
- // In Zig, we prefer using slices over null-terminated pointers.
+ // In Zig, we prefer slices over pointers to null-terminated arrays.
// You can turn an array into a slice using slice syntax:
var array = []u8{ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 };
const slice = array[2..4];