mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
builtin: make string.add() private
This commit is contained in:
parent
72159d4169
commit
5c12d13b19
@ -210,7 +210,7 @@ fn (s string) ge(a string) bool {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// TODO `fn (s string) + (a string)` ? To be consistent with operator overloading syntax.
|
// TODO `fn (s string) + (a string)` ? To be consistent with operator overloading syntax.
|
||||||
pub fn (s string) add(a string) string {
|
fn (s string) add(a string) string {
|
||||||
new_len := a.len + s.len
|
new_len := a.len + s.len
|
||||||
mut res := string {
|
mut res := string {
|
||||||
len: new_len
|
len: new_len
|
||||||
|
Loading…
x
Reference in New Issue
Block a user