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

replace ugly tos2(bytes) with string(bytes)

This commit is contained in:
Alexander Medvednikov
2019-06-27 12:27:46 +02:00
parent fda7caef93
commit 90c0791345
11 changed files with 30 additions and 39 deletions

View File

@@ -54,10 +54,6 @@ fn tos2(s byteptr) string {
return res
}
fn tos_no_len(s byteptr) string {
return tos2(s)
}
fn (a string) clone() string {
mut b := string {
len: a.len