Skip to content

Commit

Permalink
Remove redundancy in docstrings for >> and >>> (#46889)
Browse files Browse the repository at this point in the history
  • Loading branch information
udohjeremiah committed Oct 2, 2022
1 parent 45fd204 commit 80df2c2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions base/operators.jl
Original file line number Diff line number Diff line change
Expand Up @@ -658,9 +658,9 @@ end
>>(x, n)
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 if `x >= 0`, `1`s if `x <
0`, preserving the sign of `x`. This is equivalent to `fld(x, 2^n)`. For `n <
0`, this is equivalent to `x << -n`.
right by `n` bits, filling with `0`s if `x >= 0`, `1`s if `x < 0`, preserving
the sign of `x`. This is equivalent to `fld(x, 2^n)`. For `n < 0`, this is
equivalent to `x << -n`.
# Examples
```jldoctest
Expand Down Expand Up @@ -699,8 +699,8 @@ end
>>>(x, 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`.
shifted right by `n` bits, filling with `0`s. For `n < 0`, this is equivalent
to `x << -n`.
For [`Unsigned`](@ref) integer types, this is equivalent to [`>>`](@ref). For
[`Signed`](@ref) integer types, this is equivalent to `signed(unsigned(x) >> n)`.
Expand Down

0 comments on commit 80df2c2

Please sign in to comment.