Skip to content

Commit

Permalink
Merge pull request #17969 from MichaelHatherly/mh/remove-xrefs
Browse files Browse the repository at this point in the history
Remove two cross-references
  • Loading branch information
MichaelHatherly authored Aug 12, 2016
2 parents 0544ddf + 2301c27 commit 050ae4e
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 18 deletions.
15 changes: 0 additions & 15 deletions base/docs/helpdb/Base.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2905,21 +2905,6 @@ Squared absolute value of `x`.
"""
abs2

"""
write(stream::IO, x)
write(filename::AbstractString, x)
Write the canonical binary representation of a value to the given I/O stream or file.
Returns the number of bytes written into the stream.
You can write multiple values with the same :func:`write` call. i.e. the following are
equivalent:
write(stream, x, y...)
write(stream, x) + write(stream, y...)
"""
write

"""
sizehint!(s, n)
Expand Down
14 changes: 14 additions & 0 deletions base/io.jl
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,20 @@ function iswritable end
function copy end
function eof end

"""
write(stream::IO, x)
write(filename::AbstractString, x)
Write the canonical binary representation of a value to the given I/O stream or file.
Returns the number of bytes written into the stream.
You can write multiple values with the same `write` call. i.e. the following are equivalent:
write(stream, x, y...)
write(stream, x) + write(stream, y...)
"""
function write end

read(s::IO, ::Type{UInt8}) = error(typeof(s)," does not support byte I/O")
write(s::IO, x::UInt8) = error(typeof(s)," does not support byte I/O")

Expand Down
2 changes: 1 addition & 1 deletion base/operators.jl
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ end
Unsigned right bit shift operator, `x >>> n`. For `n >= 0`, the result is `x`
shifted right by `n` bits, where `n >= 0`, filling with `0`s. For `n < 0`, this
is equivalent to `x [<<](:func:`<<`) -n`].
is equivalent to `x << -n`.
For `Unsigned` integer types, this is equivalent to [`>>`](:func:`>>`). For
`Signed` integer types, this is equivalent to `signed(unsigned(x) >> n)`.
Expand Down
2 changes: 1 addition & 1 deletion doc/stdlib/io-network.rst
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ General I/O
Write the canonical binary representation of a value to the given I/O stream or file. Returns the number of bytes written into the stream.

You can write multiple values with the same :func:``write`` call. i.e. the following are equivalent:
You can write multiple values with the same ``write`` call. i.e. the following are equivalent:

.. code-block:: julia
Expand Down
2 changes: 1 addition & 1 deletion doc/stdlib/math.rst
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ Mathematical Operators

.. Docstring generated from Julia source
Unsigned right bit shift operator, ``x >>> n``\ . For ``n >= 0``\ , the result is ``x`` shifted right by ``n`` bits, where ``n >= 0``\ , filling with ``0``\ s. For ``n < 0``\ , this is equivalent to ``x [<<](:func:``\ <<``) -n``\ ].
Unsigned right bit shift operator, ``x >>> n``\ . For ``n >= 0``\ , the result is ``x`` shifted right by ``n`` bits, where ``n >= 0``\ , filling with ``0``\ s. For ``n < 0``\ , this is equivalent to ``x << -n``\ .

For ``Unsigned`` integer types, this is equivalent to :func:`>>`\ . For ``Signed`` integer types, this is equivalent to ``signed(unsigned(x) >> n)``\ .

Expand Down

0 comments on commit 050ae4e

Please sign in to comment.