mirror of
https://github.com/oven-sh/bun
synced 2026-02-12 11:59:00 +00:00
fix source map line offsets (#2791)
* find codepoint at `i` * fix allocator usage * missing comment * switch to `Cursor` iterator
This commit is contained in:
@@ -250,7 +250,7 @@ pub const MutableString = struct {
|
||||
return self.indexOfChar(char) != null;
|
||||
}
|
||||
|
||||
pub fn indexOfChar(self: *const MutableString, char: u8) ?usize {
|
||||
pub fn indexOfChar(self: *const MutableString, char: u8) ?u32 {
|
||||
return strings.indexOfChar(self.list.items, char);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user