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

fix prod build

This commit is contained in:
Alexander Medvednikov
2020-03-21 07:04:53 +01:00
parent 5072320803
commit 5f61fbcbe3
2 changed files with 5 additions and 6 deletions

View File

@ -57,7 +57,7 @@ pub fn (b mut Builder) writeln(s string) {
// buf == 'hello world'
// last_n(5) returns 'world'
pub fn (b mut Builder) last_n(n int) string {
pub fn (b &Builder) last_n(n int) string {
if n > b.len {
return ''
}
@ -67,7 +67,7 @@ pub fn (b mut Builder) last_n(n int) string {
// buf == 'hello world'
// after(6) returns 'world'
pub fn (b mut Builder) after(n int) string {
pub fn (b &Builder) after(n int) string {
if n >= b.len {
return ''
}