# Fix lastIndexOf and add tests that do not fallback to linear search · gitcafe/zig

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

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

Visibility: public

Requested revision: a394a6300cb79ced98d445917c8c73937107e4d1

Requested commit: a394a6300cb79ced98d445917c8c73937107e4d1

Commit: a394a6300cb79ced98d445917c8c73937107e4d1

Tree: 2960e5eaea876ca9e2e16332a7e005f5b3e7ccbb

Author: dec05eba

Committer: dec05eba

## Message

```
Fix lastIndexOf and add tests that do not fallback to linear search

Use sliceAsBytes to convert []const T to []const u8.
Cleanup.

```

## Parents

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

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