mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
Makefile: re-write make test
in V
This commit is contained in:
@ -41,9 +41,7 @@ pub fn tos_clone(s byteptr) string {
|
||||
if isnil(s) {
|
||||
panic('tos: nil string')
|
||||
}
|
||||
len := strlen(s)
|
||||
res := tos(s, len)
|
||||
return res.clone()
|
||||
return tos2(s).clone()
|
||||
}
|
||||
|
||||
// Same as `tos`, but calculates the length. Called by `string(bytes)` casts.
|
||||
|
Reference in New Issue
Block a user