aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorMarwan Tammam <Quarz0@users.noreply.github.com>2019-07-09 15:52:05 +0200
committeralandonovan <adonovan@google.com>2019-07-09 09:52:05 -0400
commit23d87667016eca2fede83894bc3c28ec09b7f1d7 (patch)
tree514d797afb69dbd842665beb86487aec523552b5 /doc
parent32f34518621301fe6ca1937b9685d58284d1237b (diff)
downloadstarlark-go-23d87667016eca2fede83894bc3c28ec09b7f1d7.tar.gz
Fix rstrip/lstrip spec examples (#221)
Diffstat (limited to 'doc')
-rw-r--r--doc/spec.md7
1 files changed, 3 insertions, 4 deletions
diff --git a/doc/spec.md b/doc/spec.md
index fc2490c..2416e18 100644
--- a/doc/spec.md
+++ b/doc/spec.md
@@ -3857,8 +3857,8 @@ Like `strip`, it accepts an optional string parameter that specifies an
alternative set of Unicode code points to remove.
```python
-" hello ".lstrip() # " hello"
-" hello ".lstrip("h o") # "ell "
+" hello ".lstrip() # "hello "
+" hello ".lstrip("h o") # "ello "
```
<a id='string·partition'></a>
@@ -3946,8 +3946,7 @@ Like `strip`, it accepts an optional string parameter that specifies an
alternative set of Unicode code points to remove.
```python
-" hello ".rstrip() # "hello "
-" hello ".rstrip() # "hello "
+" hello ".rstrip() # " hello"
" hello ".rstrip("h o") # " hell"
```