-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix #17070, move docs out of HelpDB too. #17763
Conversation
should mention what #17070 means in the commit message |
…t of HelpDB too. Fixed the type signatures. Made `nb` reflect what's actually in the code.
@@ -168,11 +168,11 @@ General I/O | |||
|
|||
See ``read`` for a description of the ``all`` option. | |||
|
|||
.. function:: read(stream::IO, nb=typemax(Int); all=true) | |||
.. function:: read(s::IOStream, nb::Integer; all=true) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
later in base/io.jl
there is
# read up to nb bytes from s, returning a Vector{UInt8} of bytes read.
function read(s::IO, nb=typemax(Int))
that still has the default value of nb
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It doesn't have the all
kwarg though. You can't do read(s; all=false)
, can you?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you can't, so maybe the signature with (s::IO, nb=typemax(Int))
default value but no kwarg should be a separate docstring?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree, will add.
Travis fail isn't my fault, right? |
If `all` is `true` (the default), this function will block repeatedly trying to read all | ||
requested bytes, until an error or end-of-file occurs. If `all` is `false`, at most one | ||
`read` call is performed, and the amount of data returned is device-dependent. Note that not | ||
all stream types support the `all` option. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
needs another make docs run no it doesn't i misread the diff below
timeout, probably related to the perf regression |
No description provided.