scanner: fix typo (#8345)

pull/8376/head
StunxFS 2021-01-27 08:53:41 -04:00 committed by GitHub
parent 17921f4171
commit cb885d30b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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