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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user