Skip to content

Commit

Permalink
try to fix
Browse files Browse the repository at this point in the history
  • Loading branch information
putianyi889 committed Nov 7, 2023
1 parent 3017e9b commit d72305a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions src/Utils.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
import Base: front
export seealso

docref(s) = "[`$(string(s))`](@ref)"

langenum(s) = s
langenum(s, t) = s * " and " * t
langenum(s, t...) = s * ", " *langenum(t...)
"""
seealso(s...)
Expand All @@ -17,9 +23,3 @@ julia> seealso(sin, cos, tan)
```
"""
seealso(s...) = "See also " * langenum(map(docref, s)...) * "."

docref(s) = "[`$(string(s))`](@ref)"

langenum(s) = s
langenum(s, t) = s * " and " * t
langenum(s, t...) = s * ", " *langenum(t...)
2 changes: 1 addition & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@ end
@test endswith(AbstractArray, Array)
end

@testset "# https://github.com/JuliaLang/julia/pull/48894" begin
@testset "https://github.com/JuliaLang/julia/pull/48894" begin
@test AbstractRange{Float64}(1:10) AbstractVector{Float64}(1:10) AbstractArray{Float64}(1:10) 1.0:10
end

0 comments on commit d72305a

Please sign in to comment.