diff --git a/spec.md b/spec.md index b99b3c6..10c8def 100644 --- a/spec.md +++ b/spec.md @@ -4486,7 +4486,7 @@ are strings. ### string·lstrip -`S.lstrip([cutset])` returns a copy of the string S with leading whitespace removed. +`S.lstrip([chars])` returns a copy of the string S with leading whitespace removed. Like `strip`, it accepts an optional string parameter that specifies an alternative set of Unicode code points to remove. @@ -4604,7 +4604,7 @@ rightmost splits. ### string·rstrip -`S.rstrip([cutset])` returns a copy of the string S with trailing whitespace removed. +`S.rstrip([chars])` returns a copy of the string S with trailing whitespace removed. Like `strip`, it accepts an optional string parameter that specifies an alternative set of Unicode code points to remove. @@ -4686,11 +4686,11 @@ function reports whether any one of them is a prefix. ### string·strip -`S.strip([cutset])` returns a copy of the string S with leading and trailing whitespace removed. +`S.strip([chars])` returns a copy of the string S with leading and trailing whitespace removed. It accepts an optional string argument, -`cutset`, which instead removes all leading -and trailing Unicode code points contained in `cutset`. +`chars`, which instead removes all leading +and trailing Unicode code points contained in `chars`. ```python "\rhello\t ".strip() # "hello"