Skip to content

Commit

Permalink
fix a few doctest failures
Browse files Browse the repository at this point in the history
[ci skip]
  • Loading branch information
JeffBezanson committed Jul 26, 2016
1 parent 67cc6c5 commit a8d7963
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 11 deletions.
8 changes: 4 additions & 4 deletions doc/devdocs/types.rst
Original file line number Diff line number Diff line change
Expand Up @@ -245,11 +245,11 @@ bound :obj:`TypeVar` objects with a hash (``#T`` instead of ``T``):

.. doctest::

julia> jl_(first(methods(candid)))
Method(sig=Tuple{Main.#candid, Array{#T<:Any, N<:Any}, #T<:Any}, va=false, isstaged=false, tvars=#T<:Any, func=Main.candid(?), invokes=nothing, next=nothing)
julia> jl_(first(methods(candid)).sig)
Tuple{Main.#candid, Array{#T<:Any, N<:Any}, #T<:Any}

julia> jl_(first(methods(sneaky)))
Method(sig=Tuple{Main.#sneaky, Array{#T<:Any, N<:Any}, T<:Any}, va=false, isstaged=false, tvars=#T<:Any, func=Main.sneaky(?), invokes=nothing, next=nothing)
julia> jl_(first(methods(sneaky)).sig)
Tuple{Main.#sneaky, Array{#T<:Any, N<:Any}, T<:Any}

Even though both print as ``T``, in ``sneaky`` the second ``T`` is
not bound, and hence it isn't constrained to be the same type as the
Expand Down
9 changes: 3 additions & 6 deletions doc/manual/metaprogramming.rst
Original file line number Diff line number Diff line change
Expand Up @@ -629,14 +629,11 @@ Compare:
Expr
head: Symbol string
args: Array{Any}((5,))
1: String
data: Array{UInt8}((3,)) UInt8[0x61,0x20,0x28]
1: String "a ("
2: Symbol a
3: String
data: Array{UInt8}((18,)) UInt8[0x29,0x20,0x73,0x68,0x6f,0x75,0x6c,0x64,0x20,0x65,0x71,0x75,0x61,0x6c,0x20,0x62,0x20,0x28]
3: String ") should equal b ("
4: Symbol b
5: String
data: Array{UInt8}((2,)) UInt8[0x29,0x21]
5: String ")!"
typ: Any

So now instead of getting a plain string in ``msg_body``, the macro is
Expand Down
2 changes: 1 addition & 1 deletion doc/manual/stacktraces.rst
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ Each :obj:`StackFrame` contains the function name, file name, line number, lambd
234

julia> top_frame.linfo
Nullable{LambdaInfo}(LambdaInfo for eval(::Module, ::Any)
Nullable{LambdaInfo}(LambdaInfo for eval(::Module, ::Any))
...

julia> top_frame.inlined
Expand Down

0 comments on commit a8d7963

Please sign in to comment.