# fix slice of slice with sentinel but no end index · gitcafe/zig

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

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

Visibility: public

Requested revision: 5d51d4474a0c61f08c264c03ecbdf651d91afe82

Requested commit: 5d51d4474a0c61f08c264c03ecbdf651d91afe82

Commit: 5d51d4474a0c61f08c264c03ecbdf651d91afe82

Tree: 96b99d998f9ed55da1b74dc13834c99da5921b35

Author: Techatrix

Committer: Techatrix

## Message

````
fix slice of slice with sentinel but no end index

example:
```zig
test {
	var foo = "";
	_ = foo[0..][0.. :0];
}
```

A `.slice_sentinel` ast node may not have an end index.

````

## Parents

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

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