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