Update Nat to U64 in some comments

This commit is contained in:
Richard Feldman 2024-01-22 23:18:55 -05:00
parent a71188dc30
commit 4a870c8ee0
No known key found for this signature in database
GPG key ID: F1F21AA5B1D9E43B
2 changed files with 17 additions and 17 deletions

View file

@ -361,7 +361,7 @@ impl<'a> LowLevelCall<'a> {
}
}
ListReplaceUnsafe => {
// List.replace_unsafe : List elem, Nat, elem -> { list: List elem, value: elem }
// List.replace_unsafe : List elem, U64, elem -> { list: List elem, value: elem }
let list: Symbol = self.arguments[0];
let index: Symbol = self.arguments[1];
@ -449,7 +449,7 @@ impl<'a> LowLevelCall<'a> {
backend.call_host_fn_after_loading_args(bitcode::LIST_REPLACE);
}
ListWithCapacity => {
// List.withCapacity : Nat -> List elem
// List.withCapacity : U64 -> List elem
let capacity: Symbol = self.arguments[0];
let elem_layout = unwrap_list_elem_layout(self.ret_layout_raw);
@ -500,7 +500,7 @@ impl<'a> LowLevelCall<'a> {
}
ListReserve => {
// List.reserve : List elem, Nat -> List elem
// List.reserve : List elem, U64 -> List elem
let list: Symbol = self.arguments[0];
let spare: Symbol = self.arguments[1];
@ -649,7 +649,7 @@ impl<'a> LowLevelCall<'a> {
}
ListSublist => {
// As a low-level, record is destructured
// List.sublist : List elem, start : Nat, len : Nat -> List elem
// List.sublist : List elem, start : U64, len : U64 -> List elem
let list: Symbol = self.arguments[0];
let start: Symbol = self.arguments[1];
@ -697,7 +697,7 @@ impl<'a> LowLevelCall<'a> {
backend.call_host_fn_after_loading_args(bitcode::LIST_SUBLIST);
}
ListDropAt => {
// List.dropAt : List elem, Nat -> List elem
// List.dropAt : List elem, U64 -> List elem
let list: Symbol = self.arguments[0];
let drop_index: Symbol = self.arguments[1];