Skip to content

Commit

Permalink
make the "needle (elem) list" message more clear (#5054)
Browse files Browse the repository at this point in the history
  • Loading branch information
yabobay committed Sep 2, 2022
1 parent 71f5c50 commit 958537b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core.c/Cool.pm6
Expand Up @@ -206,7 +206,7 @@ my class Cool { # declared in BOOTSTRAP

proto method contains(|) {*}
multi method contains(List:D: Cool:D \needle) { # Warn about newbie trap
self!list-as-string('needle (elem) list');
self!list-as-string('$item (elem) @list');
self.Str.contains: needle.Str, |%_
}
multi method contains(Cool:D:
Expand Down

0 comments on commit 958537b

Please sign in to comment.