From 491e7ae8f47daf6144158c107e70d46e1df64a6e Mon Sep 17 00:00:00 2001 From: Michael Abbott Date: Mon, 14 Dec 2020 00:30:20 +0100 Subject: [PATCH] some fixes? --- base/abstractset.jl | 2 +- base/docs/basedocs.jl | 2 +- base/iterators.jl | 2 +- base/number.jl | 2 +- base/operators.jl | 2 +- base/reflection.jl | 4 ++-- base/show.jl | 2 +- base/strings/io.jl | 2 +- base/threadingconstructs.jl | 4 ++-- doc/src/base/base.md | 2 ++ doc/src/base/math.md | 1 + stdlib/LinearAlgebra/docs/src/index.md | 1 + 12 files changed, 15 insertions(+), 11 deletions(-) diff --git a/base/abstractset.jl b/base/abstractset.jl index 81db69d8940d34..61d497c99c8f95 100644 --- a/base/abstractset.jl +++ b/base/abstractset.jl @@ -103,7 +103,7 @@ end Construct the intersection of sets. Maintain order with arrays. -See also: [`setdiff`](@ref), [`isdisjoint`](@ref), [`issubset`](@ref), [`issetequal`](@ref). +See also: [`setdiff`](@ref), [`isdisjoint`](@ref), [`issubset`](@ref Base.issubset), [`issetequal`](@ref). # Examples ```jldoctest diff --git a/base/docs/basedocs.jl b/base/docs/basedocs.jl index eff51397fb6e49..f29c4f4a2a2006 100644 --- a/base/docs/basedocs.jl +++ b/base/docs/basedocs.jl @@ -931,7 +931,7 @@ kw";" Short-circuiting boolean AND. -See also [`&`](@ref), and the [ternary operator `? :`](@ref kw"?"). +See also [`&`](@ref), the ternary operator `? :`, and the manual section on [control flow](@ref man-conditional-evaluation). # Examples ```jldoctest diff --git a/base/iterators.jl b/base/iterators.jl index 118f19ab845ed9..c5c01ab8906c9b 100644 --- a/base/iterators.jl +++ b/base/iterators.jl @@ -937,7 +937,7 @@ Return an iterator over the product of several iterators. Each generated element a tuple whose `i`th element comes from the `i`th argument iterator. The first iterator changes the fastest. -See also: [`zip`](@ref), [`splat`](@ref Base.splat), [`Iterators.flatten`](@ref). +See also: [`zip`](@ref), [`Iterators.flatten`](@ref), `Base.splat`. # Examples ```jldoctest diff --git a/base/number.jl b/base/number.jl index eeb7591b8b2b11..d091126f69fe65 100644 --- a/base/number.jl +++ b/base/number.jl @@ -311,7 +311,7 @@ should return an identity value of the same precision If you want a quantity that is of the same type as `x`, or of type `T`, even if `x` is dimensionful, use [`oneunit`](@ref) instead. -See also [`identity`](@ref), [`LinearAlgebra.I`](@ref). +See also [`identity`](@ref), `LinearAlgebra.I`. # Examples ```jldoctest diff --git a/base/operators.jl b/base/operators.jl index 508c6f20183ab9..2b79c83b2b528b 100644 --- a/base/operators.jl +++ b/base/operators.jl @@ -504,7 +504,7 @@ extrema(f, x::Real) = (y = f(x); (y, y)) The identity function. Returns its argument. -See also: [`one`](@ref), [`oneunit`](@ref), [`I`](@ref LinearAlgebra.I). +See also: [`one`](@ref), [`oneunit`](@ref), `LinearAlgebra.I`. # Examples ```jldoctest diff --git a/base/reflection.jl b/base/reflection.jl index c876d8915f954d..485ee960710b1b 100644 --- a/base/reflection.jl +++ b/base/reflection.jl @@ -913,7 +913,7 @@ A list of modules can also be specified as an array. !!! compat "Julia 1.4" At least Julia 1.4 is required for specifying a module. -See also: [`which`](@ref), [`@which`](@ref). +See also: [`which`](@ref), [`@which`](@ref Base.@which). """ function methods(@nospecialize(f), @nospecialize(t), mod::Union{Tuple{Module},AbstractArray{Module},Nothing}=nothing) @@ -1244,7 +1244,7 @@ Returns the method of `f` (a `Method` object) that would be called for arguments If `types` is an abstract type, then the method that would be called by `invoke` is returned. -See also: [`@which`](@ref), [`@edit`](@ref), [`parentmodule`](@ref). +See also: [`@which`](@ref Base.@which), [`@edit`](@ref Base.@edit), [`parentmodule`](@ref). """ function which(@nospecialize(f), @nospecialize(t)) if isa(f, Core.Builtin) diff --git a/base/show.jl b/base/show.jl index 5f9856b10f6433..f567457d07f1d7 100644 --- a/base/show.jl +++ b/base/show.jl @@ -898,7 +898,7 @@ show_supertypes(typ::DataType) = show_supertypes(stdout, typ) Prints one or more expressions, and their results, to `stdout`, and returns the last result. -See also: [`show`](@ref), [`@info`](@ref Logging.@logmsg), [`println`](@ref). +See also: [`show`](@ref), [`@info`](@ref Logging), [`println`](@ref). # Examples ```jldoctest diff --git a/base/strings/io.jl b/base/strings/io.jl index 842516bb9607bc..74c93475d23de8 100644 --- a/base/strings/io.jl +++ b/base/strings/io.jl @@ -57,7 +57,7 @@ end Print (using [`print`](@ref)) `xs` followed by a newline. If `io` is not supplied, prints to [`stdout`](@ref). -See also: [`show`](@ref), [`@show`](@ref), [`@info`](@ref Logging.@logmsg), [`sprint`](@ref), [`Printf.@printf`](@ref). +See also: [`show`](@ref), [`@show`](@ref), [`@info`](@ref Logging), [`sprint`](@ref), [`Printf.@printf`](@ref Printf). # Examples ```jldoctest diff --git a/base/threadingconstructs.jl b/base/threadingconstructs.jl index 6c7a8ef2410cde..b0b7037c4c3a55 100644 --- a/base/threadingconstructs.jl +++ b/base/threadingconstructs.jl @@ -16,7 +16,7 @@ threadid() = Int(ccall(:jl_threadid, Int16, ())+1) Get the number of threads available to the Julia process. This is the inclusive upper bound on [`threadid()`](@ref). -See also: [`BLAS.get_num_threads`](@ref LinearAlgebra.BLAS.get_num_threads), [`BLAS.set_num_threads`](@ref LinearAlgebra.BLAS.set_num_threads), [`Distributed.addprocs`](@ref). +See also: `BLAS.get_num_threads` and `BLAS.set_num_threads` in the [`LinearAlgebra`](@ref man-linalg) standard library. """ nthreads() = Int(unsafe_load(cglobal(:jl_n_threads, Cint))) @@ -117,7 +117,7 @@ The default schedule (used when no `schedule` argument is present) is subject to !!! compat "Julia 1.5" The `schedule` argument is available as of Julia 1.5. -See also: [`@spawn`](@ref Threads.@spawn), [`nthreads()`](@ref Threads.nthreads), [`threadid()`](@ref Threads.threadid), [Distributed.pmap](@ref), [`BLAS.set_num_threads`](@ref LinearAlgebra.BLAS.set_num_threads). +See also: [`@spawn`](@ref Threads.@spawn), [`nthreads()`](@ref Threads.nthreads), [`threadid()`](@ref Threads.threadid), [Distributed.pmap](@ref Distributed), `BLAS.set_num_threads` in [`LinearAlgebra`](@ref). """ macro threads(args...) na = length(args) diff --git a/doc/src/base/base.md b/doc/src/base/base.md index 2f8d9310010045..a54d051b1016b8 100644 --- a/doc/src/base/base.md +++ b/doc/src/base/base.md @@ -222,6 +222,7 @@ Base.Val Core.Vararg Core.Nothing Base.isnothing +Base.notnothing Base.Some Base.something Base.Enums.Enum @@ -405,6 +406,7 @@ Base.isconst Base.nameof(::Function) Base.functionloc(::Any, ::Any) Base.functionloc(::Method) +Base.@locals ``` ## Internals diff --git a/doc/src/base/math.md b/doc/src/base/math.md index f567db09844dad..1c90d75f9fb62f 100644 --- a/doc/src/base/math.md +++ b/doc/src/base/math.md @@ -176,6 +176,7 @@ Base.nextprod Base.invmod Base.powermod Base.ndigits +Base.add_sum Base.widemul Base.Math.evalpoly Base.Math.@evalpoly diff --git a/stdlib/LinearAlgebra/docs/src/index.md b/stdlib/LinearAlgebra/docs/src/index.md index 52e78609992878..1c152bb8a3b355 100644 --- a/stdlib/LinearAlgebra/docs/src/index.md +++ b/stdlib/LinearAlgebra/docs/src/index.md @@ -576,6 +576,7 @@ LinearAlgebra.BLAS.trmv LinearAlgebra.BLAS.trsv! LinearAlgebra.BLAS.trsv LinearAlgebra.BLAS.set_num_threads +LinearAlgebra.BLAS.get_num_threads ``` ## LAPACK functions