Skip to content

Commit e072392

Browse files
authored
Merge pull request #55 from Hikelio/master
add tip about parentheses in regex in AboutMethods
2 parents fb05c50 + f2699f0 commit e072392

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/about_methods.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ def test_sometimes_missing_parentheses_are_ambiguous
3939

4040
# NOTE: wrong number of arguments is not a SYNTAX error, but a
4141
# runtime error.
42+
# tip: When regex contains parentheses, you must escape them with backslash.
4243
def test_calling_global_methods_with_wrong_number_of_arguments
4344
exception = assert_raise(___(ArgumentError)) do
4445
my_global_method

0 commit comments

Comments
 (0)