diff options
Diffstat (limited to 'doc/spec.md')
-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" ``` |