Skip to content

Commit 2b1af8b

Browse files
committed
Update comments
1 parent 1861dd0 commit 2b1af8b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/parser.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,15 +165,15 @@ function findBinaryFunction(tokens: ExprElement[], fn: string) {
165165

166166

167167
/**
168-
* Merge any tokens with a subtraction into a single term. Subtraction can be in the form of ['a', '-', 'b'], where the
168+
* Merge any tokens with a subtraction into a single term. Subtraction can be in the form of ['3', '-', '2'], where the
169169
* token is an operator. Alternatively, due to previously parsing unary minus, it can be in the form of ['a', {function
170-
* "-" args: "b"}]. This function merges both cases into a single term.
170+
* '-' args: 'b'}]. This function merges both cases into a single term.
171171
* */
172172
function findBinarySubtractionFunctions(tokens: ExprElement[]) {
173173
for (let i = 1; i < tokens.length; i++) {
174174
const token = tokens[i];
175175

176-
// This is the case when we have something like ["a", "-", "b"].
176+
// This is the case when we have something like ['3', '-', '2'].
177177
if (isOperator(token, '- −')) {
178178
const a = tokens[i - 1];
179179
const b = tokens[i + 1];

0 commit comments

Comments
 (0)