# embedFile: change notation from \[X:0\] to \[N:0\] · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/9e88356282861e5812d95587cb8fab7f902bc85b)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 9e88356282861e5812d95587cb8fab7f902bc85b

Requested commit: 9e88356282861e5812d95587cb8fab7f902bc85b

Commit: 9e88356282861e5812d95587cb8fab7f902bc85b

Tree: 2d6321739d507435dc14bfca7057807b6a9f3c2a

Author: Daniele Cocca

Committer: Daniele Cocca

## Message

```
embedFile: change notation from [X:0] to [N:0]

This is for consistency with the documentation on sentinel-terminated
{arrays,slices,pointers} which already use `N` for a comptime-inferred
size rather than `X`.

Also adds a behavioral test to assert that a string literal is returned.

```

## Parents

- [9be2f767417ef4eb69f35b67348bb3e2ec752d4a](https://git.cafe/gitcafe/zig/commit/9be2f767417ef4eb69f35b67348bb3e2ec752d4a?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/9e88356282861e5812d95587cb8fab7f902bc85b?format=markdown)
