mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-02 16:21:11 +00:00
Rename Str.toBytes to Str.toUtf8
This commit is contained in:
parent
23e11ca946
commit
2a616103c6
16 changed files with 33 additions and 33 deletions
|
@ -96,7 +96,7 @@ comptime {
|
|||
exportStrFn(str.strFromIntC, "from_int");
|
||||
exportStrFn(str.strFromFloatC, "from_float");
|
||||
exportStrFn(str.strEqual, "equal");
|
||||
exportStrFn(str.strToBytesC, "to_bytes");
|
||||
exportStrFn(str.strToUtf8C, "to_utf8");
|
||||
exportStrFn(str.fromUtf8C, "from_utf8");
|
||||
}
|
||||
|
||||
|
|
|
@ -1129,8 +1129,8 @@ test "RocStr.joinWith: result is big" {
|
|||
try expect(roc_result.eq(result));
|
||||
}
|
||||
|
||||
// Str.toBytes
|
||||
pub fn strToBytesC(arg: RocStr) callconv(.C) RocList {
|
||||
// Str.toUtf8
|
||||
pub fn strToUtf8C(arg: RocStr) callconv(.C) RocList {
|
||||
return @call(.{ .modifier = always_inline }, strToBytes, .{arg});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue