Skip to content

Commit

Permalink
Fixes example and eliminates WHAT from definition
Browse files Browse the repository at this point in the history
  • Loading branch information
JJ committed Sep 25, 2018
1 parent f0d9834 commit c6bf737
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/Type/Test.pod6
Expand Up @@ -355,7 +355,7 @@ string. The function accepts an optional C<$description> of the test.
Defined as:
multi sub can-ok(Mu $var, Str $meth,$desc = ($var.defined ?? "An object of type '" !! "The type '") ~ "$var.WHAT.perl()' can do the method '$meth'" )
multi sub can-ok(Mu $var, Str $meth,$desc = "..." )
Marks a test as passed if the given C<$variable> can run the given
C<$method-name>. The function accepts an optional C<$description>. For
Expand All @@ -376,7 +376,7 @@ instance:
Defined as:
does-ok(Mu $var, Mu $type, $desc = "...")
multi sub does-ok(Mu $var, Mu $type, $desc = "...")
Marks a test as passed if the given C<$variable> can do the given C<$role>.
The function accepts an optional C<$description> of the test.
Expand Down

0 comments on commit c6bf737

Please sign in to comment.