# std: Replace lastIndexOf with lastIndexOfScalar · gitcafe/zig

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

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

Visibility: public

Requested revision: bee7db77fe65802a41f2812caac4faa7dcb8acd3

Requested commit: bee7db77fe65802a41f2812caac4faa7dcb8acd3

Commit: bee7db77fe65802a41f2812caac4faa7dcb8acd3

Tree: 84c28ada047c8a39687c31a6944f23b081b24628

Author: LemonBoy

Committer: Andrew Kelley

## Message

```
std: Replace lastIndexOf with lastIndexOfScalar

This may work around the miscompilation in LLVM 12.

```

## Parents

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

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