Skip to content

Commit d6176ab

Browse files
dhamoritz
authored andcommitted
Adjust doc for ord to indicate it returns *first* code point. (#448)
Adjusted doc for ord so that it indicates that it returns the *first* code point.
1 parent 86d716f commit d6176ab

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
@@ -651,9 +651,10 @@ Usage:
651651
ord STRING
652652
STRING.ord
653653
654-
Coerces the invocant (or in sub form, its argument) to L<Str|/type/Str>, and returns the
655-
L<Unicode code point|https://en.wikipedia.org/wiki/Code_point>,
656-
number of the code point.
654+
Coerces the invocant (or in sub form, its argument) to
655+
L<Str|/type/Str>, and returns the L<Unicode code
656+
point|https://en.wikipedia.org/wiki/Code_point> number of the first
657+
code point.
657658
658659
say 'a'.ord; # 97
659660

0 commit comments

Comments
 (0)