Skip to content

Commit f2699f0

Browse files
committed
add needed tip in AboutMethods
1 parent 8e70162 commit f2699f0

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

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)