Skip to content

Commit

Permalink
correct variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
thetarnav committed Jul 16, 2024
1 parent 1c38d18 commit 0d166ec
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/server/inlay_hints.odin
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,9 @@ get_inlay_hints :: proc(
position = call_range.end
position.character -= 1

needs_training_comma := i > 0
needs_leading_comma := i > 0

if !has_added_default && needs_training_comma {
if !has_added_default && needs_leading_comma {
till_end := string(
document.text[:call.close.offset],
)
Expand All @@ -139,7 +139,7 @@ get_inlay_hints :: proc(
case ' ', '\t', '\n':
continue
case ',':
needs_training_comma = false
needs_leading_comma = false
}
break
}
Expand All @@ -149,7 +149,7 @@ get_inlay_hints :: proc(
kind = .Parameter,
label = fmt.tprintf(
"%s %v := %v",
needs_training_comma ? "," : "",
needs_leading_comma ? "," : "",
label,
value,
),
Expand Down

0 comments on commit 0d166ec

Please sign in to comment.