aboutsummaryrefslogtreecommitdiff
path: root/src/codegen/llvm.zig
diff options
context:
space:
mode:
authorManlio Perillo <manlio.perillo@gmail.com>2022-12-13 20:58:52 +0100
committerGitHub <noreply@github.com>2022-12-13 14:58:52 -0500
commit21dafd7a54f1b3233e0e73439daee82aa08d4900 (patch)
tree16a7199a0dd4c832ac907d488054b96639e6945f /src/codegen/llvm.zig
parent478544239e001eac5bd4840b3c36bc097b1c49ae (diff)
downloadzig-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/codegen/llvm.zig')
0 files changed, 0 insertions, 0 deletions