From 8081c14475d22fc94476ac7bb6a5b7b00b72d9a2 Mon Sep 17 00:00:00 2001 From: Mark Pilgrim Date: Sat, 11 Apr 2009 14:18:30 -0400 Subject: [PATCH] validation typos --- strings.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/strings.html b/strings.html index 247d711..afaa490 100644 --- a/strings.html +++ b/strings.html @@ -265,7 +265,7 @@ experience of years.
 >>> by = b'abcd\x65'  
 >>> by
-b'abcde'
+b'abcde'
 >>> type(by)          
 <class 'bytes'>
 >>> len(by)           
@@ -279,7 +279,7 @@ b'abcde'
 97
 >>> by[0] = 102       
 Traceback (most recent call last):
-  File "<stdin>", line 1, in 
+  File "<stdin>", line 1, in <module>
 TypeError: 'bytes' object does not support item assignment
  1. To define a bytes object, use the b'' “byte literal” syntax. Each byte within the byte literal can be an ASCII character or an encoded hexadecimal number from \x00 to \xff (0–255).