diff options
author | Marwan Tammam <Quarz0@users.noreply.github.com> | 2019-07-09 15:52:05 +0200 |
---|---|---|
committer | alandonovan <adonovan@google.com> | 2019-07-09 09:52:05 -0400 |
commit | 23d87667016eca2fede83894bc3c28ec09b7f1d7 (patch) | |
tree | 514d797afb69dbd842665beb86487aec523552b5 /doc | |
parent | 32f34518621301fe6ca1937b9685d58284d1237b (diff) | |
download | starlark-go-23d87667016eca2fede83894bc3c28ec09b7f1d7.tar.gz |
Fix rstrip/lstrip spec examples (#221)
Diffstat (limited to 'doc')
-rw-r--r-- | doc/spec.md | 7 |
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" ``` |