mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 21:39:07 +00:00
Merge branch 'trunk' into fix-str-from-int
This commit is contained in:
commit
c0c2c1341c
45 changed files with 104 additions and 78 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue