mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 00:24:34 +00:00
Return a bool instead of a u1
This commit is contained in:
parent
ae8e56cce9
commit
319ded66ca
1 changed files with 1 additions and 1 deletions
|
@ -537,7 +537,7 @@ pub fn startsWith(
|
||||||
bytes_len: usize,
|
bytes_len: usize,
|
||||||
prefix_ptr: [*]u8,
|
prefix_ptr: [*]u8,
|
||||||
prefix_len: usize
|
prefix_len: usize
|
||||||
) callconv(.C) u1 {
|
) callconv(.C) bool {
|
||||||
if(prefix_len > bytes_len) {
|
if(prefix_len > bytes_len) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue