diff options
| author | Manlio Perillo <manlio.perillo@gmail.com> | 2022-12-13 20:58:52 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-12-13 14:58:52 -0500 |
| commit | 21dafd7a54f1b3233e0e73439daee82aa08d4900 (patch) | |
| tree | 16a7199a0dd4c832ac907d488054b96639e6945f /src/ThreadPool.zig | |
| parent | 478544239e001eac5bd4840b3c36bc097b1c49ae (diff) | |
| download | zig-21dafd7a54f1b3233e0e73439daee82aa08d4900.tar.gz zig-21dafd7a54f1b3233e0e73439daee82aa08d4900.zip | |
langref: update comments in the slices.zig doctest (#13819)
In the slices.zig doctest, the code
`const all_together_slice = all_together[0..]` is incorrect, since the
actual type is a pointer to an array, instead of a slice.
Use a runtime-known value to slice the array.
In the next "slice pointer" test, clarify that slicing a slice to
produce a pointer to an array, requires comptime-known indexes, not just
constant indexes.
Diffstat (limited to 'src/ThreadPool.zig')
0 files changed, 0 insertions, 0 deletions
