diff options
| author | Manlio Perillo <manlio.perillo@gmail.com> | 2022-12-08 14:34:43 +0100 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2022-12-13 14:59:46 -0500 |
| commit | 1d5368fa35740f64d81f755588edc5c6698036ec (patch) | |
| tree | 504aa90c5fa89a66cf677ad9cb8bdcdb061b5ddc /src/codegen.zig | |
| parent | 21dafd7a54f1b3233e0e73439daee82aa08d4900 (diff) | |
| download | zig-1d5368fa35740f64d81f755588edc5c6698036ec.tar.gz zig-1d5368fa35740f64d81f755588edc5c6698036ec.zip | |
langref: fix the slice_bounds.zig doctest
In the slice_bounds.zig doctest, the code "const slice = array[2..4]" is
incorrect, since the actual type is a pointer to an array, instead of a
slice.
Use a runtime know value to slice the array.
Diffstat (limited to 'src/codegen.zig')
0 files changed, 0 insertions, 0 deletions
