Fix some typos in the documentation.

And some minor clean-ups. There should be no semantic changes to the
documentation in this patch.
This commit is contained in:
Chris Palmer committed 2020-01-03 17:53:58 -08:00
1 parent 6f7e9dfa26
commit e9fdc38300
19 files changed
+39 -41

No files matched your search

+2 -2
View File
@@ -17,8 +17,8 @@ copy the elements. It has O(1) algorithmic complexity. Assigning to an
array-typed variable copies the elements. It has O(length) algorithmic
complexity.
Both `s[i .. j]` and `a[i .. j]` refer to slices, ranging from the `i`'th
element (inclusive) to the `j`'th element (exclusive). `i` can be omitted,
Both `s[i .. j]` and `a[i .. j]` refer to slices, ranging from the `i`th
element (inclusive) to the `j`th element (exclusive). `i` can be omitted,
implicitly equalling zero. `j` can be omitted, implicitly equalling the length.
For example, `s[.. 5]` contains the first five elements of `s`.