mirror of
https://github.com/vlang/v.git
synced 2025-09-13 22:42:26 +03:00
opt
This commit is contained in:
parent
bec1417f7e
commit
7105bd190e
1 changed files with 2 additions and 1 deletions
|
@ -109,8 +109,9 @@ fn endline_if_missed(line string) string {
|
|||
return line + '\n'
|
||||
}
|
||||
|
||||
@[direct_array_access]
|
||||
fn remove_comment(s string) string {
|
||||
mut result := []rune{}
|
||||
mut result := []rune{cap: s.len}
|
||||
mut in_double_quote := false
|
||||
mut in_single_quote := false
|
||||
mut escaped := false
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue