Skip to content

Commit

Permalink
Fix line numbers in doctests
Browse files Browse the repository at this point in the history
[ci skip]
  • Loading branch information
tkelman committed Aug 4, 2016
1 parent 40d298f commit ff1b65c
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion base/docs/helpdb/Base.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5010,7 +5010,7 @@ julia> deleteat!([6, 5, 4, 3, 2, 1], 1:2:5)
julia> deleteat!([6, 5, 4, 3, 2, 1], (2, 2))
ERROR: ArgumentError: indices must be unique and sorted
in deleteat!(::Array{Int64,1}, ::Tuple{Int64,Int64}) at ./array.jl:537
in deleteat!(::Array{Int64,1}, ::Tuple{Int64,Int64}) at ./array.jl:541
...
```
"""
Expand Down
2 changes: 1 addition & 1 deletion doc/manual/complex-and-rational-numbers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ versus ``-1 + 0im`` even though ``-1 == -1 + 0im``:
julia> sqrt(-1)
ERROR: DomainError:
sqrt will only return a complex result if called with a complex argument. Try sqrt(complex(x)).
in sqrt(::Int64) at ./math.jl:154
in sqrt(::Int64) at ./math.jl:169
...

julia> sqrt(-1 + 0im)
Expand Down
2 changes: 1 addition & 1 deletion doc/manual/control-flow.rst
Original file line number Diff line number Diff line change
Expand Up @@ -666,7 +666,7 @@ negative real value:
julia> sqrt(-1)
ERROR: DomainError:
sqrt will only return a complex result if called with a complex argument. Try sqrt(complex(x)).
in sqrt(::Int64) at ./math.jl:154
in sqrt(::Int64) at ./math.jl:169
...

You may define your own exceptions in the following way:
Expand Down
2 changes: 1 addition & 1 deletion doc/manual/mathematical-operations.rst
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ The following examples show the different forms.

julia> round(Int8,127.6)
ERROR: InexactError()
in trunc(::Type{Int8}, ::Float64) at ./float.jl:456
in trunc(::Type{Int8}, ::Float64) at ./float.jl:458
in round(::Type{Int8}, ::Float64) at ./float.jl:211
...

Expand Down
2 changes: 1 addition & 1 deletion doc/stdlib/collections.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1162,7 +1162,7 @@ Dequeues

julia> deleteat!([6, 5, 4, 3, 2, 1], (2, 2))
ERROR: ArgumentError: indices must be unique and sorted
in deleteat!(::Array{Int64,1}, ::Tuple{Int64,Int64}) at ./array.jl:537
in deleteat!(::Array{Int64,1}, ::Tuple{Int64,Int64}) at ./array.jl:541
...

.. function:: splice!(collection, index, [replacement]) -> item
Expand Down

0 comments on commit ff1b65c

Please sign in to comment.