Skip to content

Commit eb05225

Browse files
authored
Correct default of writable in doc for IOBuffer
Changed default for writable to false in the docs. Also removed superfluous comma in doc, and adjusted brackets for optionals.
1 parent 582ba82 commit eb05225

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)