From 04e85cebc230cc0594d476ca324dab693c7ba7ec Mon Sep 17 00:00:00 2001 From: Curtis Vogt Date: Wed, 29 Jun 2016 13:55:04 -0500 Subject: [PATCH] Doctest changes from #17113 --- base/docs/helpdb/Base.jl | 5 +---- doc/devdocs/reflection.rst | 2 +- doc/stdlib/linalg.rst | 5 +---- 3 files changed, 3 insertions(+), 9 deletions(-) diff --git a/base/docs/helpdb/Base.jl b/base/docs/helpdb/Base.jl index d4e28b2033f96f..149b0c7ba84b96 100644 --- a/base/docs/helpdb/Base.jl +++ b/base/docs/helpdb/Base.jl @@ -9176,10 +9176,7 @@ on the `permute` and `scale` keyword arguments. The eigenvectors are returned co ```jldoctest julia> eig([1.0 0.0 0.0; 0.0 3.0 0.0; 0.0 0.0 18.0]) ([1.0,3.0,18.0], -3×3 Array{Float64,2}: - 1.0 0.0 0.0 - 0.0 1.0 0.0 - 0.0 0.0 1.0) +[1.0 0.0 0.0; 0.0 1.0 0.0; 0.0 0.0 1.0]) ``` `eig` is a wrapper around [`eigfact`](:func:`eigfact`), extracting all parts of the diff --git a/doc/devdocs/reflection.rst b/doc/devdocs/reflection.rst index a88c34d1236f7a..185016495c732f 100644 --- a/doc/devdocs/reflection.rst +++ b/doc/devdocs/reflection.rst @@ -92,7 +92,7 @@ the macro will be evaluated and the result will be passed instead!). For example .. doctest:: julia> macroexpand( :(@edit println("")) ) - :(Base.edit(println,(Base.typesof)(""))) + :((Base.edit)(println,(Base.typesof)(""))) The functions :func:`Base.Meta.show_sexpr` and :func:`dump` are used to display S-expr style views and depth-nested detail views for any expression. diff --git a/doc/stdlib/linalg.rst b/doc/stdlib/linalg.rst index 30d5dd320531be..13de30c191ce8a 100644 --- a/doc/stdlib/linalg.rst +++ b/doc/stdlib/linalg.rst @@ -584,10 +584,7 @@ Linear algebra functions in Julia are largely implemented by calling functions f julia> eig([1.0 0.0 0.0; 0.0 3.0 0.0; 0.0 0.0 18.0]) ([1.0,3.0,18.0], - 3×3 Array{Float64,2}: - 1.0 0.0 0.0 - 0.0 1.0 0.0 - 0.0 0.0 1.0) + [1.0 0.0 0.0; 0.0 1.0 0.0; 0.0 0.0 1.0]) ``eig`` is a wrapper around :func:`eigfact`\ , extracting all parts of the factorization to a tuple; where possible, using :func:`eigfact` is recommended.