Commit 241b8677 authored by Stefan Behnel's avatar Stefan Behnel

Minor improvements to docs examples.

parent b43c08b3
cdef bytes bytes_string = b'hello world'
cdef bytes bytes_string = b"hello to A bytes' world"
cdef char c
for c in bytes_string:
......
cdef char* c_string = "Hello world"
cdef char* c_string = "Hello to A C-string's world"
cdef char c
for c in c_string[:11]:
......
......@@ -2,4 +2,4 @@ cpdef void is_in(Py_UCS4 uchar_val):
if uchar_val in u'abcABCxY':
print("The character is in the string.")
else:
print("The character isn't in the string")
print("The character is not in the string")
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment