Skip to content

Commit 5049504

Browse files
authored
Update Runic to version 1.2. (#2615)
1 parent c955fe8 commit 5049504

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

.github/workflows/CI.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ jobs:
222222
- uses: julia-actions/cache@v2
223223
- uses: fredrikekre/runic-action@v1
224224
with:
225-
version: '1.0.0'
225+
version: '1.2'
226226

227227
typos:
228228
name: Spell Check with Typos

src/documents.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -988,7 +988,7 @@ function populate!(index::IndexNode, document::Document)
988988
pagesmap = precedence(index.pages)
989989
modulesmap = precedence(index.modules)
990990
ordermap = precedence(index.order)
991-
comparison = function(a, b)
991+
comparison = function (a, b)
992992
(x = _compare(pagesmap, 3, a, b)) == 0 || return x < 0 # page
993993
(x = _compare(modulesmap, 4, a, b)) == 0 || return x < 0 # module
994994
(x = _compare(ordermap, 5, a, b)) == 0 || return x < 0 # category
@@ -1014,7 +1014,7 @@ function populate!(contents::ContentsNode, document::Document)
10141014
end
10151015
# Sorting contents links.
10161016
pagesmap = precedence(contents.pages)
1017-
comparison = function(a, b)
1017+
comparison = function (a, b)
10181018
(x = _compare(pagesmap, 2, a, b)) == 0 || return x < 0 # page
10191019
return a[1] < b[1] # anchor order
10201020
end

test/docsystem.jl

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -69,14 +69,14 @@ end
6969
@test (fieldnames(DocSystem.DocStr)...,) == (:text, :object, :data)
7070
## `getdocs`.
7171
let b = DocSystem.binding(DocSystem, :getdocs),
72-
d_0 = DocSystem.getdocs(b, Tuple{}),
73-
d_1 = DocSystem.getdocs(b),
74-
d_2 = DocSystem.getdocs(b, Union{Tuple{Any}, Tuple{Any, Type}}; compare = (==)),
75-
d_3 = DocSystem.getdocs(b; modules = Module[Main]),
76-
d_4 = DocSystem.getdocs(DocSystem.binding(@__MODULE__, :alias_of_getdocs)),
77-
d_5 = DocSystem.getdocs(DocSystem.binding(@__MODULE__, :alias_of_getdocs); aliases = false),
78-
d_6 = DocSystem.getdocs(b, Union{Tuple{Docs.Binding}, Tuple{Docs.Binding, Type}}; compare = (==)),
79-
d_7 = DocSystem.getdocs(DocSystem.binding(@__MODULE__, :alias_of_getdocs), Union{Tuple{Docs.Binding}, Tuple{Docs.Binding, Type}})
72+
d_0 = DocSystem.getdocs(b, Tuple{}),
73+
d_1 = DocSystem.getdocs(b),
74+
d_2 = DocSystem.getdocs(b, Union{Tuple{Any}, Tuple{Any, Type}}; compare = (==)),
75+
d_3 = DocSystem.getdocs(b; modules = Module[Main]),
76+
d_4 = DocSystem.getdocs(DocSystem.binding(@__MODULE__, :alias_of_getdocs)),
77+
d_5 = DocSystem.getdocs(DocSystem.binding(@__MODULE__, :alias_of_getdocs); aliases = false),
78+
d_6 = DocSystem.getdocs(b, Union{Tuple{Docs.Binding}, Tuple{Docs.Binding, Type}}; compare = (==)),
79+
d_7 = DocSystem.getdocs(DocSystem.binding(@__MODULE__, :alias_of_getdocs), Union{Tuple{Docs.Binding}, Tuple{Docs.Binding, Type}})
8080

8181
@test length(d_0) == 0
8282
@test length(d_1) == 2

0 commit comments

Comments
 (0)