1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

minor V.js fixes

This commit is contained in:
Alexander Medvednikov
2019-10-25 11:24:34 +03:00
parent 97096e4e6c
commit 4e21e9ed44
4 changed files with 27 additions and 18 deletions

View File

@ -17,6 +17,15 @@ fn C.strlen(s byteptr) int
fn todo() { }
pub fn tos(s byteptr) string {
len := 0
#len = s.length;
return string{
str: s
len: len
}
}
pub fn (a string) clone() string {
return a