mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 10:28:47 +00:00
[strings] Fix typo in string_immutable.zig
occurences -> occurrences
This commit is contained in:
committed by
Jarred Sumner
parent
1f887bb863
commit
6c5472a84c
@@ -482,7 +482,7 @@ pub fn eqlAnyComptime(self: string, comptime list: []const string) bool {
|
||||
return false;
|
||||
}
|
||||
|
||||
/// Count the occurences of a character in an ASCII byte array
|
||||
/// Count the occurrences of a character in an ASCII byte array
|
||||
/// uses SIMD
|
||||
pub fn countChar(self: string, char: u8) usize {
|
||||
var total: usize = 0;
|
||||
|
||||
Reference in New Issue
Block a user