Changeset 23046

Show
Ignore:
Timestamp:
11/19/08 23:41:46 (7 weeks ago)
Author:
masak
Message:

[Spec/Functions.pod] fixed minor typos, added missing arguments to .fmt

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • docs/Perl6/Spec/Functions.pod

    r22954 r23046  
    1414                Carl Mäsak <cmasak@gmail.com> 
    1515 Date:          12 Mar 2005 
    16  Last Modified: 7 Nov 2008 
    17  Version:       29 
     16 Last Modified: 19 Nov 2008 
     17 Version:       30 
    1818 
    1919This document attempts to document the list of builtin functions in Perl 6. 
     
    13661366 
    13671367Directives guide the use (if any) of the arguments. When a directive 
    1368 (other than C<%>) are used, they indicate how the next argument 
     1368(other than C<%>) is used, it indicates how the next argument 
    13691369passed is to be formatted into the string. 
    13701370 
     
    13951395 F   a synonym for %f 
    13961396 
    1397 Perl 5 compatibility: 
     1397Perl 5 (non-)compatibility: 
    13981398 
    13991399 n   produces a runtime exception (see below) 
     
    14371437=item fmt 
    14381438 
    1439   our Str multi method fmt( Scalar $scalar: ) 
    1440   our Str multi method fmt( List $list:, Str $separator = ' ' ) 
    1441   our Str multi method fmt( Hash $hash:, Str $separator = "\n" ) 
    1442   our Str multi method fmt( Pair $pair: ) 
     1439  our Str multi method fmt( Scalar $scalar: Str $format ) 
     1440  our Str multi method fmt( List $list: Str $format, Str $separator = ' ' ) 
     1441  our Str multi method fmt( Hash $hash: Str $format, Str $separator = "\n" ) 
     1442  our Str multi method fmt( Pair $pair: Str $format ) 
    14431443 
    14441444A set of wrappers around C<sprintf>. A call to the scalar version 
     
    17091709 
    17101710When stringified, an C<OS::Name> yields its name. When 
    1711 stringified, an C<OS::addr> yields its address in an 
     1711stringified, an C<OS::Addr> yields its address in an 
    17121712appropriate text format (e.g. "10.1.2.3" for an IPV4 address). 
    17131713 
     
    19791979=item dump 
    19801980 
    1981 Dumped. 
     1981Dumped. The C<.perl> method fills this role in Perl 6. 
    19821982 
    19831983