Skip to content

Commit

Permalink
Fix trivial typo in comment
Browse files Browse the repository at this point in the history
"rhs" is pronounced "ar-aitch-es." The initial sound is a vowel sound ("ar"), so "an rhs" is correct.
"lhs" is pronounced "el-aitch-es." The initial sound is a vowel sound ("el"), so "an lhs" is correct.

Therefore, we should write:
- an RHS
- an LHS
  • Loading branch information
ydah committed Jun 7, 2024
1 parent 3fafbc2 commit b13a5b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/lrama/grammar/code/rule_action.rb
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,12 @@ def position_in_rhs
@rule.position_in_original_rule_rhs || @rule.rhs.count
end

# If this is midrule action, RHS is a RHS of the original rule.
# If this is midrule action, RHS is an RHS of the original rule.
def rhs
(@rule.original_rule || @rule).rhs
end

# Unlike `rhs`, LHS is always a LHS of the rule.
# Unlike `rhs`, LHS is always an LHS of the rule.
def lhs
@rule.lhs
end
Expand Down

0 comments on commit b13a5b3

Please sign in to comment.