summaryrefslogtreecommitdiff
path: root/docs/examples/tutorial/string
diff options
context:
space:
mode:
authorStefan Behnel <stefan_ml@behnel.de>2018-06-22 11:03:55 +0200
committerStefan Behnel <stefan_ml@behnel.de>2018-06-22 11:03:55 +0200
commit241b8677d724ca619d050923a8e34ae3672661e3 (patch)
treef2895c59b078e1d901b4d3443cbab23cfa36b6e2 /docs/examples/tutorial/string
parentb43c08b395af944f94d3f1ae66de2cdd125c4847 (diff)
downloadcython-241b8677d724ca619d050923a8e34ae3672661e3.tar.gz
Minor improvements to docs examples.
Diffstat (limited to 'docs/examples/tutorial/string')
-rw-r--r--docs/examples/tutorial/string/for_bytes.pyx2
-rw-r--r--docs/examples/tutorial/string/for_char.pyx2
-rw-r--r--docs/examples/tutorial/string/if_char_in.pyx2
3 files changed, 3 insertions, 3 deletions
diff --git a/docs/examples/tutorial/string/for_bytes.pyx b/docs/examples/tutorial/string/for_bytes.pyx
index 1740ae236..69e9202ae 100644
--- a/docs/examples/tutorial/string/for_bytes.pyx
+++ b/docs/examples/tutorial/string/for_bytes.pyx
@@ -1,4 +1,4 @@
-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:
diff --git a/docs/examples/tutorial/string/for_char.pyx b/docs/examples/tutorial/string/for_char.pyx
index 1de615ad1..adc16bcd8 100644
--- a/docs/examples/tutorial/string/for_char.pyx
+++ b/docs/examples/tutorial/string/for_char.pyx
@@ -1,4 +1,4 @@
-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]:
diff --git a/docs/examples/tutorial/string/if_char_in.pyx b/docs/examples/tutorial/string/if_char_in.pyx
index aa684bcee..73521b2de 100644
--- a/docs/examples/tutorial/string/if_char_in.pyx
+++ b/docs/examples/tutorial/string/if_char_in.pyx
@@ -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")