From cb885d30b49bf8a522daee20328c128e2424d71b Mon Sep 17 00:00:00 2001 From: StunxFS <56417208+StunxFS@users.noreply.github.com> Date: Wed, 27 Jan 2021 08:53:41 -0400 Subject: [PATCH] scanner: fix typo (#8345) --- vlib/v/scanner/scanner.v | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vlib/v/scanner/scanner.v b/vlib/v/scanner/scanner.v index 7fe94c21d8..34e7e57833 100644 --- a/vlib/v/scanner/scanner.v +++ b/vlib/v/scanner/scanner.v @@ -162,7 +162,7 @@ fn (mut s Scanner) new_token(tok_kind token.Kind, lit string, len int) token.Tok } [inline] -fn (mut s Scanner) new_mulitline_token(tok_kind token.Kind, lit string, len int, start_line int) token.Token { +fn (mut s Scanner) new_multiline_token(tok_kind token.Kind, lit string, len int, start_line int) token.Token { cidx := s.tidx s.tidx++ return token.Token{ @@ -983,7 +983,7 @@ fn (mut s Scanner) text_scan() token.Token { if !comment.contains('\n') { comment = '\x01' + comment } - return s.new_mulitline_token(.comment, comment, comment.len + 4, + return s.new_multiline_token(.comment, comment, comment.len + 4, start_line) } // Skip if not in fmt mode