Skip to content

Instantly share code, notes, and snippets.

@dogbert17
Last active June 25, 2017 14:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dogbert17/1674bbf7fff38db92062b4b5cbc300a4 to your computer and use it in GitHub Desktop.
Save dogbert17/1674bbf7fff38db92062b4b5cbc300a4 to your computer and use it in GitHub Desktop.
diff --git a/doc/Language/functions.pod6 b/doc/Language/functions.pod6
index 1dd12da6..54edfeea 100644
--- a/doc/Language/functions.pod6
+++ b/doc/Language/functions.pod6
@@ -212,8 +212,10 @@ You declare each candidate with the C<multi> declarator:
congratulate 'Larry'; # OUTPUT: «Happy birthday, Larry␤»
congratulate 'Bob', 45; # OUTPUT: «Happy 45th birthday, Bob␤»
-Dispatch can happen on the number of arguments (the L<arity|/type/Routine#(Code)_method_arity>), but also on the
-type:
+Dispatch can happen on the number of arguments (the L<arity|/type/Routine#(Code)_method_arity>), the
+type of arguments but also on additional assertions which can be placed on them. For more information
+about type constraints see the documentation for the L<Signature|/type/Signature#Type_Constraints>
+class.
multi as-json(Bool $d) { $d ?? 'true' !! 'false'; }
multi as-json(Real $d) { ~$d }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment