[prev in list] [next in list] [prev in thread] [next in thread] 

List:       perl6-language
Subject:    r27098 - docs/Perl6/Spec/S32-setting-library
From:       pugs-commits () feather ! perl6 ! nl
Date:       2009-06-16 20:37:03
Message-ID: 20090616203703.2693.qmail () feather ! perl6 ! nl
[Download RAW message or body]

Author: lwall
Date: 2009-06-16 22:37:03 +0200 (Tue, 16 Jun 2009)
New Revision: 27098

Modified:
   docs/Perl6/Spec/S32-setting-library/Str.pod
Log:
[S32/Str] old thinko on the inequalities


Modified: docs/Perl6/Spec/S32-setting-library/Str.pod
===================================================================
--- docs/Perl6/Spec/S32-setting-library/Str.pod	2009-06-16 20:32:37 UTC (rev 27097)
+++ docs/Perl6/Spec/S32-setting-library/Str.pod	2009-06-16 20:37:03 UTC (rev 27098)
@@ -229,12 +229,12 @@
 Returns the number of bytes in the string if it were encoded in the
 specified way.  Note the inequality:
 
-    .bytes("UTF-16","C") * 2 >= .codes("C")
+    .bytes("UTF-16","C") >= .codes("C") * 2
 
 This is caused by the possibility of surrogate pairs, which are counted as one
 codepoint.  However, this problem does not arise for UTF-32:
 
-    .bytes("UTF-32","C") * 4 == .codes("C")
+    .bytes("UTF-32","C") == .codes("C") * 4
 
 =item encode
 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic