Skip to content

Commit fa2298f

Browse files
authored
Merge pull request #23588 from mlhetland/patch-1
Correct default of writable in doc for IOBuffer
2 parents e51f4a8 + eb05225 commit fa2298f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

base/iobuffer.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ StringVector(n::Integer) = Vector{UInt8}(_string_n(n))
3232
# IOBuffers behave like Files. They are typically readable and writable. They are seekable. (They can be appendable).
3333

3434
"""
35-
IOBuffer([data,],[readable::Bool=true, writable::Bool=true, [maxsize::Int=typemax(Int)]])
35+
IOBuffer([data, ][readable::Bool=true, writable::Bool=false[, maxsize::Int=typemax(Int)]])
3636
3737
Create an `IOBuffer`, which may optionally operate on a pre-existing array. If the
3838
readable/writable arguments are given, they restrict whether or not the buffer may be read

0 commit comments

Comments
 (0)