mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-03 19:58:18 +00:00
Fix some comments
This commit is contained in:
parent
55ca75a37f
commit
af14efea91
2 changed files with 3 additions and 3 deletions
|
@ -5586,7 +5586,7 @@ fn run_low_level<'a, 'ctx, 'env>(
|
|||
call_bitcode_fn(env, &[string, index], bitcode::STR_GET_SCALAR_UNSAFE)
|
||||
}
|
||||
StrCountUtf8Bytes => {
|
||||
// Str.countGraphemes : Str -> Nat
|
||||
// Str.countUtf8Bytes : Str -> Nat
|
||||
debug_assert_eq!(args.len(), 1);
|
||||
|
||||
let string = load_symbol(scope, &args[0]);
|
||||
|
@ -5639,7 +5639,7 @@ fn run_low_level<'a, 'ctx, 'env>(
|
|||
call_str_bitcode_fn(env, &[string], bitcode::STR_TRIM_RIGHT)
|
||||
}
|
||||
ListLen => {
|
||||
// List.len : List * -> Int
|
||||
// List.len : List * -> Nat
|
||||
debug_assert_eq!(args.len(), 1);
|
||||
|
||||
let arg = load_symbol(scope, &args[0]);
|
||||
|
|
|
@ -351,7 +351,7 @@ fn bounds_check_comparison<'ctx>(
|
|||
builder.build_int_compare(IntPredicate::ULT, elem_index, len, "bounds_check")
|
||||
}
|
||||
|
||||
/// List.len : List elem -> Int
|
||||
/// List.len : List * -> Nat
|
||||
pub fn list_len<'ctx>(
|
||||
builder: &Builder<'ctx>,
|
||||
wrapper_struct: StructValue<'ctx>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue