Skip to content

Commit 4f27969

Browse files
committed
get the first part of the example right and link to uninames
1 parent 251eb2f commit 4f27969

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

doc/Type/Cool.pod

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -895,15 +895,16 @@ Defined as:
895895
Usage:
896896
897897
# Camelia in Unicode
898-
say '»ö«'.uniname;
899-
«RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK␤»
898+
say ‘»ö«’.comb».uniname;
899+
# «("RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK",
900+
"LATIN SMALL LETTER O WITH DIAERESIS", "LEFT-POINTING DOUBLE ANGLE QUOTATION MARK")␤»
900901
901902
# Find the char with the longest Unicode name.
902903
say (0..0x1FFFF).sort(*.uniname.chars)[*-1].chr.uniname;
903904
# «ARABIC LIGATURE UIGHUR KIRGHIZ YEH WITH HAMZA ABOVE WITH ALEF MAKSURA INITIAL FORM␤»
904905
905906
Interprets the invocant / first argument as a L</type/Str>, and returns the
906-
Unicode codepoint name of the first character.
907+
Unicode codepoint name of the first character. To convert a while string use L<uninames|#routine_uninames>.
907908
908909
=head2 routine chop
909910

0 commit comments

Comments
 (0)