Skip to content

Commit

Permalink
vfmt scanner.v
Browse files Browse the repository at this point in the history
  • Loading branch information
StunxFS authored Oct 2, 2024
1 parent 677b8ba commit 5ea6c87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vlib/v/scanner/scanner.v
Original file line number Diff line number Diff line change
Expand Up @@ -1883,7 +1883,7 @@ fn wrap(s string, config WrapConfig) string {
mut sb := strings.new_builder(50)
sb.write_string(words[0])
mut space_left := config.width - words[0].len
for i in 1..words.len {
for i in 1 .. words.len {
word := words[i]
if word.len + 1 > space_left {
sb.write_string(config.end)
Expand Down

0 comments on commit 5ea6c87

Please sign in to comment.