Skip to content

Commit

Permalink
docs: luau qsv_accumulate value - expanded comment about initial value
Browse files Browse the repository at this point in the history
[skip ci]
  • Loading branch information
jqnatividad committed Feb 18, 2025
1 parent cda17f4 commit 02b70d3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/cmd/luau.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2502,7 +2502,9 @@ fn setup_helpers(
_ => 0.0,
}
} else {
// Always start with the current value as the initial value
// By default, the first column value is used as the initial value
// unless the optional initial value is provided.
// If the first column value is not a number, 0.0 is used as the initial value.
curr_value
};
luau.globals().set(&*state_name, init_value)?;
Expand Down

0 comments on commit 02b70d3

Please sign in to comment.