Merge branch 'trunk' into fix-str-from-int

This commit is contained in:
Folkert de Vries 2021-11-07 00:00:21 +01:00 committed by GitHub
commit c0c2c1341c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
45 changed files with 104 additions and 78 deletions

View file

@ -264,7 +264,7 @@ pub const RocStr = extern struct {
}
// Returns (@sizeOf(RocStr) - 1) for small strings and the empty string.
// Returns 0 for refcounted stirngs and immortal strings.
// Returns 0 for refcounted strings and immortal strings.
// Returns the stored capacity value for all other strings.
pub fn capacity(self: RocStr) usize {
const length = self.len();