mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
as_str() replaced by str_view()
This commit is contained in:
@@ -42,7 +42,7 @@ fn void ByteWriter.destroy(&self)
|
||||
*self = { };
|
||||
}
|
||||
|
||||
fn String ByteWriter.as_str(&self) @inline
|
||||
fn String ByteWriter.str_view(&self) @inline
|
||||
{
|
||||
return (String)self.bytes[:self.index];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user