Skip to content

Commit 938ef3b

Browse files
committed
Fix typos
1 parent b131d3c commit 938ef3b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/main/java/org/truffleruby/parser/lexer/StringTerm.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060

6161
public class StringTerm extends StrTerm {
6262

63-
// Chanacters that can be escaped in a %r style regexp literal when they are also the terminator.
63+
// Characters that can be escaped in a %r style regexp literal when they are also the terminator.
6464
private static final Set<Character> REGEXP_ESCAPABLE_TERMINATORS = new HashSet<>(
6565
Arrays.asList(new Character[]{ '!', '"', '#', '%', '&', '\'', ',', '-', ':', ';', '@', '_', '`' }));
6666

src/main/java/org/truffleruby/parser/parser/ParserSupport.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -645,7 +645,7 @@ private void handleUselessWarn(ParseNode node, String useless) {
645645
"Useless use of " + useless + " in void context.");
646646
}
647647

648-
/** Check to see if current node is an useless statement. If useless a warning if printed.
648+
/** Check to see if current node is a useless statement. If useless a warning if printed.
649649
*
650650
* @param node to be checked. */
651651
public void checkUselessStatement(ParseNode node) {
@@ -1802,7 +1802,7 @@ public RopeWithEncoding setRegexpEncoding(RegexpParseNode end, Rope value) {
18021802

18031803
protected ClassicRegexp checkRegexpSyntax(Rope value, RegexpOptions options) {
18041804
try {
1805-
// This is only for syntax checking but this will as a side-effect create an entry in the regexp cache.
1805+
// This is only for syntax checking but this will as a side effect create an entry in the regexp cache.
18061806
return new ClassicRegexp(
18071807
getConfiguration().getContext(),
18081808
value,

0 commit comments

Comments
 (0)