From c6bf73755562e0cdc8cc446b4f8fc8a5f525d03a Mon Sep 17 00:00:00 2001 From: JJ Merelo Date: Tue, 25 Sep 2018 08:00:54 +0200 Subject: [PATCH] Fixes example and eliminates WHAT from definition --- doc/Type/Test.pod6 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/Type/Test.pod6 b/doc/Type/Test.pod6 index 738090363..dca7788ae 100644 --- a/doc/Type/Test.pod6 +++ b/doc/Type/Test.pod6 @@ -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 @@ -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.