Skip to content

Commit 81578cf

Browse files
committed
Code review. Minor fixes - fixed typo and made a test more readable
1 parent ba086a2 commit 81578cf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

spec/ruby/core/regexp/source_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
end
1111

1212
it "keeps escape sequences as is" do
13-
/\x20\+/.source.should == "\\x20\\+"
13+
/\x20\+/.source.should == '\x20\+'
1414
end
1515

1616
describe "escaping" do

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

Lines changed: 1 addition & 1 deletion
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 a useless statement. If useless a warning if printed.
648+
/** Check to see if current node is a useless statement. If useless a warning is printed.
649649
*
650650
* @param node to be checked. */
651651
public void checkUselessStatement(ParseNode node) {

0 commit comments

Comments
 (0)