mirror of
https://github.com/vlang/v.git
synced 2025-09-14 23:12:33 +03:00
make function arguments immutable
This commit is contained in:
parent
74dbb1bce3
commit
0f0ed8d716
8 changed files with 42 additions and 33 deletions
|
@ -33,7 +33,7 @@ pub fn (b Builder) str() string {
|
|||
return tos(b.buf.data, b.len)
|
||||
}
|
||||
|
||||
pub fn (b Builder) cut(n int) {
|
||||
pub fn (b mut Builder) cut(n int) {
|
||||
b.len -= n
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue