ssa: builtin len&cap

This commit is contained in:
visualfc
2024-05-02 15:49:32 +08:00
parent 5bd28a1e9e
commit 3e6dfa3c05
8 changed files with 118 additions and 27 deletions

View File

@@ -46,7 +46,7 @@ func NewString(data unsafe.Pointer, len int) String {
}
// StringLen returns the length of a string.
func StringLen(s Slice) int {
func StringLen(s String) int {
return s.len
}