Author: moritz Date: 2009-07-02 19:42:40 +0200 (Thu, 02 Jul 2009) New Revision: 27366
Modified: docs/Perl6/Spec/S32-setting-library/Str.pod Log: [S32/Str] The return type of Str.encode is as specific as possible Modified: docs/Perl6/Spec/S32-setting-library/Str.pod =================================================================== --- docs/Perl6/Spec/S32-setting-library/Str.pod 2009-07-02 17:42:33 UTC (rev 27365) +++ docs/Perl6/Spec/S32-setting-library/Str.pod 2009-07-02 17:42:40 UTC (rev 27366) @@ -245,7 +245,9 @@ our Buf multi method encode($encoding = $?ENC, $nf = $?NF) Returns a C<Buf> which represents the original string in the given encoding -and normal form. +and normal form. The actual return type is as specific as possible, so +C<$str.encode('UTF-8')> returns an C<utf8> object, +C<$str.encode('ISO-8859-1')> a C<buf8>. =item index