Skip to content
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

Merged
merged 2 commits into from
Aug 4, 2016
Merged

Fix #17070, move docs out of HelpDB too. #17763

merged 2 commits into from
Aug 4, 2016

Conversation

kshyatt
Copy link
Contributor

@kshyatt kshyatt commented Aug 2, 2016

No description provided.

@kshyatt kshyatt added docs This change adds or pertains to documentation io Involving the I/O subsystem: libuv, read, write, etc. labels Aug 2, 2016
@tkelman
Copy link
Contributor

tkelman commented Aug 3, 2016

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)
Copy link
Contributor

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

Copy link
Contributor Author

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?

Copy link
Contributor

@tkelman tkelman Aug 3, 2016

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree, will add.

@kshyatt
Copy link
Contributor Author

kshyatt commented Aug 3, 2016

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.
Copy link
Contributor

@tkelman tkelman Aug 4, 2016

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

@tkelman tkelman merged commit 8973c7d into master Aug 4, 2016
@tkelman tkelman deleted the ksh/docread branch August 4, 2016 00:12
@tkelman
Copy link
Contributor

tkelman commented Aug 4, 2016

timeout, probably related to the perf regression

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs This change adds or pertains to documentation io Involving the I/O subsystem: libuv, read, write, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants