- HashSet.len() now returns usz instead of int. #2740

This commit is contained in:
Christoffer Lerno
2026-01-17 15:12:31 +01:00
parent 6dcd91c5ef
commit aa07969fc2
3 changed files with 3 additions and 2 deletions

View File

@@ -32,7 +32,7 @@ struct HashSet (Printable)
float load_factor;
}
fn int HashSet.len(&self) @operator(len) => (int) self.count;
fn usz HashSet.len(&self) @operator(len) => self.count;
<*
@param [&inout] allocator : "The allocator to use"

View File

@@ -34,7 +34,7 @@ struct LinkedHashSet (Printable)
LinkedEntry* tail;
}
fn int LinkedHashSet.len(&self) @operator(len) => (int) self.count;
fn usz LinkedHashSet.len(&self) @operator(len) => self.count;
<*
@param [&inout] allocator : "The allocator to use"