Skip to content

Commit a094c2f

Browse files
omusKenostevengj
authored
Add reference to indent function (#38940)
* Add reference to indent function * Update base/strings/io.jl Co-authored-by: Steven G. Johnson <stevenj@alum.mit.edu> Co-authored-by: Keno Fischer <keno@juliacomputing.com> Co-authored-by: Steven G. Johnson <stevenj@alum.mit.edu>
1 parent 1e2e482 commit a094c2f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

base/strings/io.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -633,6 +633,8 @@ julia> Base.unindent(" a\\n b", 2)
633633
julia> Base.unindent("\\ta\\n\\tb", 2, tabwidth=8)
634634
" a\\n b"
635635
```
636+
637+
See also `indent` from the [`MultilineStrings` package](https://github.com/invenia/MultilineStrings.jl).
636638
"""
637639
function unindent(str::AbstractString, indent::Int; tabwidth=8)
638640
indent == 0 && return str

0 commit comments

Comments
 (0)