Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Str.encode returns Blob, not Buf. mt1957++
  • Loading branch information
moritz committed Jun 18, 2015
1 parent 39e8a89 commit ec67361
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Type/Str.pod
Expand Up @@ -135,9 +135,9 @@ Returns the number of characters in the string in the current
=head2 method encode
multi method encode(Str:D: $encoding = $?ENC, $nf = $?NF) returns Buf
multi method encode(Str:D: $encoding = $?ENC, $nf = $?NF) returns Blob
Returns a L<Buf> which represents the original string in the given encoding
Returns a L<Blob> which represents the original string in the given encoding
and normal form. The actual return type is as specific as possible, so
C<$str.encode('UTF-8')> returns a C<utf8> object,
C<$str.encode('ISO-8859-1')> a C<buf8>.
Expand Down

0 comments on commit ec67361

Please sign in to comment.