Skip to content

Commit c38b844

Browse files
committed
Use .tc instead of .tclc
.tc maps better to the originally-used ucfirst() function. Thanks to moritz++ for pointing this out.
1 parent 89f2ac4 commit c38b844

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

lib/Language/traps.pod

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -210,16 +210,15 @@ In Perl 5 one could capitalize a string by using the C<ucfirst> function
210210
say ucfirst "alice"; #=> Alice
211211
212212
The C<ucfirst> function does not exist in Perl 6; one needs to use the
213-
C<tclc> method:
213+
C<tc> method:
214214
215-
say "alice".tclc; #=> Alice
215+
say "alice".tc; #=> Alice
216216
217217
which is equivalent to
218218
219-
say tclc "alice"; #=> Alice
219+
say tc "alice"; #=> Alice
220220
221-
Here, C<tclc> means "title case for the first character, lower case for the
222-
remaining characters".
221+
Here, C<tc> means "title case".
223222
224223
=end pod
225224

0 commit comments

Comments
 (0)