Skip to content

Commit

Permalink
Re-enable strict=true for doc generation (#26993)
Browse files Browse the repository at this point in the history
* fix the last remaining doc problems

* re-enable strict=true for doc build, fix #25895
  • Loading branch information
fredrikekre authored May 8, 2018
1 parent 6a23130 commit 12af2d3
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 4 deletions.
16 changes: 16 additions & 0 deletions base/abstractarray.jl
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,22 @@ julia> length(1:5)
julia> length([1, 2, 3, 4])
4
julia> length([1 2; 3 4])
4
```
"""
length

"""
length(A::AbstractArray)
Return the number of elements in the array, defaults to `prod(size(A))`.
# Examples
```jldoctest
julia> length([1, 2, 3, 4])
4
julia> length([1 2; 3 4])
4
```
Expand Down
2 changes: 2 additions & 0 deletions base/array.jl
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,8 @@ Create a shallow copy of `x`: the outer structure is copied, but not all interna
For example, copying an array produces a new array with identically-same elements as the
original.
"""
copy

copy(a::T) where {T<:Array} = ccall(:jl_array_copy, Ref{T}, (Any,), a)

# reshaping to same # of dimensions
Expand Down
2 changes: 1 addition & 1 deletion doc/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ makedocs(
doctest = ("doctest-fix" in ARGS) ? (:fix) : ("doctest" in ARGS),
linkcheck = "linkcheck" in ARGS,
linkcheck_ignore = ["https://bugs.kde.org/show_bug.cgi?id=136779"], # fails to load from nanosoldier?
strict = false,
strict = true,
checkdocs = :none,
format = "pdf" in ARGS ? :latex : :html,
sitename = "The Julia Language",
Expand Down
2 changes: 1 addition & 1 deletion doc/src/base/arrays.md
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ Base.invperm
Base.isperm
Base.permute!(::Any, ::AbstractVector)
Base.invpermute!
Base.reverse
Base.reverse(::AbstractVector; kwargs...)
Base.reverseind
Base.reverse!
```
Expand Down
1 change: 0 additions & 1 deletion doc/src/base/collections.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,6 @@ Base.last
Base.step
Base.collect(::Any)
Base.collect(::Type, ::Any)
Base.issubset(::Any, ::Any)
Base.filter
Base.filter!
Base.replace(::Any, ::Pair...)
Expand Down
2 changes: 1 addition & 1 deletion stdlib/LinearAlgebra/src/transpose.jl
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ Eagerly evaluate the lazy matrix transpose/adjoint.
Note that the transposition is applied recursively to elements.
This operation is intended for linear algebra usage - for general data manipulation see
[`Base.permutedims`](@ref), which is non-recursive.
[`permutedims`](@ref Base.permutedims), which is non-recursive.
# Examples
```jldoctest
Expand Down

0 comments on commit 12af2d3

Please sign in to comment.