Skip to content

Commit 39241d1

Browse files
committed
Touch uniprop documentation
This was an attempt to fix #1045, but I realized that uniprop-int and uniprop-str don't return anything sensible¹ at this moment. ¹ – https://irclog.perlgeek.de/perl6/2018-05-06#i_16134827
1 parent 706581a commit 39241d1

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

doc/Type/Cool.pod6

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -909,14 +909,13 @@ C<$pattern> is applied to the remaining characters of C<$string>.
909909
910910
Defined as:
911911
912-
multi sub uniprop(Str(Cool), |c)
912+
multi sub uniprop(Str:D, |c)
913+
multi sub uniprop(Int:D $code)
913914
multi sub uniprop(Int:D $code, Stringy:D $propname)
914-
multi sub uniprop(Str, $code, Stringy:D $propname)
915915
multi method uniprop(|c)
916916
917-
Interprets the invocant as a L<Str|/type/Str>, and returns the
918-
L<unicode property|http://userguide.icu-project.org/strings/properties> of the first
919-
character. If no property is specified returns the
917+
Returns the L<unicode property|http://userguide.icu-project.org/strings/properties>
918+
of the first character. If no property is specified returns the
920919
L<General Category|https://en.wikipedia.org/wiki/Unicode_character_property#General_Category>.
921920
Returns a Bool for Boolean properties.
922921

0 commit comments

Comments
 (0)