Skip to content

Commit d7ae074

Browse files
committed
Fix typos
1 parent b803ad3 commit d7ae074

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

base/strings/util.jl

+3-3
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ function lstrip(f, s::AbstractString)
147147
end
148148
SubString(s, e+1, e)
149149
end
150-
lstrip(s::AbstractString) = lstrip(isspace, f)
150+
lstrip(s::AbstractString) = lstrip(isspace, s)
151151
lstrip(s::AbstractString, chars::Chars) = lstrip(in(chars), s)
152152

153153

@@ -182,7 +182,7 @@ function rstrip(f, s::AbstractString)
182182
end
183183
SubString(s, 1, 0)
184184
end
185-
rstrip(s::AbstractString) = rstrip(isspace, f)
185+
rstrip(s::AbstractString) = rstrip(isspace, s)
186186
rstrip(s::AbstractString, chars::Chars) = rstrip(in(chars), s)
187187

188188
"""
@@ -212,7 +212,7 @@ julia> strip("{3, 5}\\n", ['{', '}', '\\n'])
212212
- [`rstrip`](@ref)
213213
"""
214214
strip(f, s::AbstractString) = lstrip(f, rstrip(f, s))
215-
strip(s::AbstractString) = strip(isspace, f)
215+
strip(s::AbstractString) = strip(isspace, s)
216216
strip(s::AbstractString, chars::Chars) = strip(in(chars), s)
217217

218218
## string padding functions ##

0 commit comments

Comments
 (0)