summaryrefslogtreecommitdiff
path: root/tool
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2023-03-22 22:35:58 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2023-03-22 22:35:58 +0900
commit27916db08cd446214b4d84b5aca7fcdf3147e2ef (patch)
tree64ccb121644e9d4fec11552a80bf91008f8c018d /tool
parentaa5d1957121bf6321f560754f316c553f60dcaae (diff)
downloadruby-27916db08cd446214b4d84b5aca7fcdf3147e2ef.tar.gz
[DOC] Update comment of assert_pattern_list
`pattern_list` may contain string since d903e7672637.
Diffstat (limited to 'tool')
-rw-r--r--tool/lib/core_assertions.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/tool/lib/core_assertions.rb b/tool/lib/core_assertions.rb
index 1662024e7d..39094fb66c 100644
--- a/tool/lib/core_assertions.rb
+++ b/tool/lib/core_assertions.rb
@@ -541,11 +541,11 @@ eom
refute_respond_to(obj, meth, msg)
end
- # pattern_list is an array which contains regexp and :*.
+ # pattern_list is an array which contains regexp, string and :*.
# :* means any sequence.
#
# pattern_list is anchored.
- # Use [:*, regexp, :*] for non-anchored match.
+ # Use [:*, regexp/string, :*] for non-anchored match.
def assert_pattern_list(pattern_list, actual, message=nil)
rest = actual
anchored = true