Skip to content

Commit 6682b5a

Browse files
committed
Switch to Documenter 1.x
1 parent b5550c9 commit 6682b5a

File tree

10 files changed

+52
-51
lines changed

10 files changed

+52
-51
lines changed

docs/Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
33

44
[compat]
5-
Documenter = "0.23"
5+
Documenter = "1"

docs/make.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ DocMeta.setdocmeta!(DataStructures, :DocTestSetup, :(using DataStructures); recu
55

66
makedocs(
77
sitename = "DataStructures.jl",
8+
warnonly = true, # FIXME: address all warnings and resolve them
89
pages = [
910
"index.md",
1011
"deque.md",

docs/src/priority-queue.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,14 @@ julia> # Julia code
3333
3434
julia> # Insert keys with associated priorities
3535
pq["a"] = 10; pq["b"] = 5; pq["c"] = 15; pq
36-
PriorityQueue{Any,Any,Base.Order.ForwardOrdering} with 3 entries:
36+
PriorityQueue{Any, Any, Base.Order.ForwardOrdering} with 3 entries:
3737
"b" => 5
3838
"a" => 10
3939
"c" => 15
4040
4141
julia> # Change the priority of an existing key
4242
pq["a"] = 0; pq
43-
PriorityQueue{Any,Any,Base.Order.ForwardOrdering} with 3 entries:
43+
PriorityQueue{Any, Any, Base.Order.ForwardOrdering} with 3 entries:
4444
"a" => 0
4545
"b" => 5
4646
"c" => 15

docs/src/robin_dict.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ Examples:
1313

1414
```jldoctest
1515
julia> d = RobinDict{Int, Char}(1 => 'a', 2 => 'b')
16-
RobinDict{Int64,Char} with 2 entries:
16+
RobinDict{Int64, Char} with 2 entries:
1717
2 => 'b'
1818
1 => 'a'
1919
2020
julia> d[3] = 'c';
2121
2222
julia> collect(d)
23-
3-element Array{Pair{Int64,Char},1}:
23+
3-element Vector{Pair{Int64, Char}}:
2424
2 => 'b'
2525
3 => 'c'
2626
1 => 'a'
@@ -31,7 +31,7 @@ julia> d[1]
3131
'a': ASCII/Unicode U+0061 (category Ll: Letter, lowercase)
3232
3333
julia> d
34-
RobinDict{Int64,Char} with 2 entries:
34+
RobinDict{Int64, Char} with 2 entries:
3535
3 => 'c'
3636
1 => 'a'
3737

docs/src/swiss_dict.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@ Examples:
1212

1313
```jldoctest
1414
julia> d = SwissDict(1 => 'a', 2 => 'b')
15-
SwissDict{Int64,Char} with 2 entries:
15+
SwissDict{Int64, Char} with 2 entries:
1616
1 => 'a'
1717
2 => 'b'
1818
1919
julia> d[3] = 'c';
2020
2121
julia> collect(d)
22-
3-element Array{Pair{Int64,Char},1}:
22+
3-element Vector{Pair{Int64, Char}}:
2323
1 => 'a'
2424
2 => 'b'
2525
3 => 'c'
@@ -30,7 +30,7 @@ julia> d[1]
3030
'a': ASCII/Unicode U+0061 (category Ll: Letter, lowercase)
3131
3232
julia> d
33-
SwissDict{Int64,Char} with 2 entries:
33+
SwissDict{Int64, Char} with 2 entries:
3434
1 => 'a'
3535
3 => 'c'
3636

src/heaps/arrays_as_heaps.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ Return `true` if an array is heap-ordered according to the given order.
122122
123123
```jldoctest
124124
julia> a = [1,2,3]
125-
3-element Array{Int64,1}:
125+
3-element Vector{Int64}:
126126
1
127127
2
128128
3

src/ordered_robin_dict.jl

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ are taken from 2-tuples `(key,value)` generated by the argument.
1212
# Examples
1313
```jldoctest
1414
julia> OrderedRobinDict([("A", 1), ("B", 2)])
15-
OrderedRobinDict{String,Int64} with 2 entries:
15+
OrderedRobinDict{String, Int64} with 2 entries:
1616
"A" => 1
1717
"B" => 2
1818
```
@@ -21,7 +21,7 @@ Alternatively, a sequence of pair arguments may be passed.
2121
2222
```jldoctest
2323
julia> OrderedRobinDict("A"=>1, "B"=>2)
24-
OrderedRobinDict{String,Int64} with 2 entries:
24+
OrderedRobinDict{String, Int64} with 2 entries:
2525
"A" => 1
2626
"B" => 2
2727
```
@@ -94,14 +94,14 @@ Remove all elements from a `collection`.
9494
# Examples
9595
```jldoctest
9696
julia> A = OrderedRobinDict("a" => 1, "b" => 2)
97-
OrderedRobinDict{String,Int64} with 2 entries:
97+
OrderedRobinDict{String, Int64} with 2 entries:
9898
"a" => 1
9999
"b" => 2
100100
101101
julia> empty!(A);
102102
103103
julia> A
104-
OrderedRobinDict{String,Int64} with 0 entries
104+
OrderedRobinDict{String, Int64}()
105105
```
106106
"""
107107
function Base.empty!(h::OrderedRobinDict{K,V}) where {K, V}
@@ -198,7 +198,7 @@ julia> get!(d, "d", 4)
198198
4
199199
200200
julia> d
201-
OrderedRobinDict{String,Int64} with 4 entries:
201+
OrderedRobinDict{String, Int64} with 4 entries:
202202
"a" => 1
203203
"b" => 2
204204
"c" => 3
@@ -291,7 +291,7 @@ Determine whether a collection has a mapping for a given `key`.
291291
# Examples
292292
```jldoctest
293293
julia> D = OrderedRobinDict('a'=>2, 'b'=>3)
294-
OrderedRobinDict{Char,Int64} with 2 entries:
294+
OrderedRobinDict{Char, Int64} with 2 entries:
295295
'a' => 2
296296
'b' => 3
297297
@@ -313,7 +313,7 @@ Return the key matching argument `key` if one exists in `collection`, otherwise
313313
# Examples
314314
```jldoctest
315315
julia> D = OrderedRobinDict('a'=>2, 'b'=>3)
316-
OrderedRobinDict{Char,Int64} with 2 entries:
316+
OrderedRobinDict{Char, Int64} with 2 entries:
317317
'a' => 2
318318
'b' => 3
319319
@@ -389,12 +389,12 @@ Delete the mapping for the given key in a collection, and return the collection.
389389
# Examples
390390
```jldoctest
391391
julia> d = OrderedRobinDict("a"=>1, "b"=>2)
392-
OrderedRobinDict{String,Int64} with 2 entries:
392+
OrderedRobinDict{String, Int64} with 2 entries:
393393
"a" => 1
394394
"b" => 2
395395
396396
julia> delete!(d, "b")
397-
OrderedRobinDict{String,Int64} with 1 entry:
397+
OrderedRobinDict{String, Int64} with 1 entry:
398398
"a" => 1
399399
```
400400
"""

src/priorityqueue.jl

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ lowest priority element.
1717
1818
```jldoctest
1919
julia> PriorityQueue(Base.Order.Forward, "a" => 2, "b" => 3, "c" => 1)
20-
PriorityQueue{String,Int64,Base.Order.ForwardOrdering} with 3 entries:
20+
PriorityQueue{String, Int64, Base.Order.ForwardOrdering} with 3 entries:
2121
"c" => 1
2222
"a" => 2
2323
"b" => 3
@@ -212,13 +212,13 @@ Insert the a key `k` into a priority queue `pq` with priority `v`.
212212
213213
```jldoctest
214214
julia> a = PriorityQueue(PriorityQueue("a"=>1, "b"=>2, "c"=>3))
215-
PriorityQueue{String,Int64,Base.Order.ForwardOrdering} with 3 entries:
215+
PriorityQueue{String, Int64, Base.Order.ForwardOrdering} with 3 entries:
216216
"a" => 1
217217
"b" => 2
218218
"c" => 3
219219
220220
julia> enqueue!(a, "d"=>4)
221-
PriorityQueue{String,Int64,Base.Order.ForwardOrdering} with 4 entries:
221+
PriorityQueue{String, Int64, Base.Order.ForwardOrdering} with 4 entries:
222222
"a" => 1
223223
"b" => 2
224224
"c" => 3
@@ -253,7 +253,7 @@ Remove and return the lowest priority key from a priority queue.
253253
254254
```jldoctest
255255
julia> a = PriorityQueue(Base.Order.Forward, ["a" => 2, "b" => 3, "c" => 1])
256-
PriorityQueue{String,Int64,Base.Order.ForwardOrdering} with 3 entries:
256+
PriorityQueue{String, Int64, Base.Order.ForwardOrdering} with 3 entries:
257257
"c" => 1
258258
"a" => 2
259259
"b" => 3
@@ -262,7 +262,7 @@ julia> dequeue!(a)
262262
"c"
263263
264264
julia> a
265-
PriorityQueue{String,Int64,Base.Order.ForwardOrdering} with 2 entries:
265+
PriorityQueue{String, Int64, Base.Order.ForwardOrdering} with 2 entries:
266266
"a" => 2
267267
"b" => 3
268268
```
@@ -293,7 +293,7 @@ Remove and return a the lowest priority key and value from a priority queue as a
293293
294294
```jldoctest
295295
julia> a = PriorityQueue(Base.Order.Forward, "a" => 2, "b" => 3, "c" => 1)
296-
PriorityQueue{String,Int64,Base.Order.ForwardOrdering} with 3 entries:
296+
PriorityQueue{String, Int64, Base.Order.ForwardOrdering} with 3 entries:
297297
"c" => 1
298298
"a" => 2
299299
"b" => 3
@@ -302,7 +302,7 @@ julia> dequeue_pair!(a)
302302
"c" => 1
303303
304304
julia> a
305-
PriorityQueue{String,Int64,Base.Order.ForwardOrdering} with 2 entries:
305+
PriorityQueue{String, Int64, Base.Order.ForwardOrdering} with 2 entries:
306306
"a" => 2
307307
"b" => 3
308308
```
@@ -332,7 +332,7 @@ Delete the mapping for the given key in a priority queue, and return the priorit
332332
# Examples
333333
```jldoctest
334334
julia> q = PriorityQueue(Base.Order.Forward, "a"=>2, "b"=>3, "c"=>1)
335-
PriorityQueue{String,Int64,Base.Order.ForwardOrdering} with 3 entries:
335+
PriorityQueue{String, Int64, Base.Order.ForwardOrdering} with 3 entries:
336336
"c" => 1
337337
"a" => 2
338338
"b" => 3

src/robin_dict.jl

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ are taken from 2-tuples `(key,value)` generated by the argument.
1212
# Examples
1313
```jldoctest
1414
julia> RobinDict([("A", 1), ("B", 2)])
15-
RobinDict{String,Int64} with 2 entries:
15+
RobinDict{String, Int64} with 2 entries:
1616
"B" => 2
1717
"A" => 1
1818
```
@@ -21,7 +21,7 @@ Alternatively, a sequence of pair arguments may be passed.
2121
2222
```jldoctest
2323
julia> RobinDict("A"=>1, "B"=>2)
24-
RobinDict{String,Int64} with 2 entries:
24+
RobinDict{String, Int64} with 2 entries:
2525
"B" => 2
2626
"A" => 1
2727
```
@@ -259,14 +259,14 @@ Remove all elements from a `collection`.
259259
# Examples
260260
```jldoctest
261261
julia> A = RobinDict("a" => 1, "b" => 2)
262-
RobinDict{String,Int64} with 2 entries:
262+
RobinDict{String, Int64} with 2 entries:
263263
"b" => 2
264264
"a" => 1
265265
266266
julia> empty!(A);
267267
268268
julia> A
269-
RobinDict{String,Int64} with 0 entries
269+
RobinDict{String, Int64}()
270270
```
271271
"""
272272
function Base.empty!(h::RobinDict{K,V}) where {K, V}
@@ -317,7 +317,7 @@ julia> get!(d, "d", 4)
317317
4
318318
319319
julia> d
320-
RobinDict{String,Int64} with 4 entries:
320+
RobinDict{String, Int64} with 4 entries:
321321
"c" => 3
322322
"b" => 2
323323
"a" => 1
@@ -414,7 +414,7 @@ Determine whether a collection has a mapping for a given `key`.
414414
# Examples
415415
```jldoctest
416416
julia> D = RobinDict('a'=>2, 'b'=>3)
417-
RobinDict{Char,Int64} with 2 entries:
417+
RobinDict{Char, Int64} with 2 entries:
418418
'a' => 2
419419
'b' => 3
420420
@@ -436,7 +436,7 @@ Return the key matching argument `key` if one exists in `collection`, otherwise
436436
# Examples
437437
```jldoctest
438438
julia> D = RobinDict('a'=>2, 'b'=>3)
439-
RobinDict{Char,Int64} with 2 entries:
439+
RobinDict{Char, Int64} with 2 entries:
440440
'a' => 2
441441
'b' => 3
442442
@@ -547,12 +547,12 @@ Delete the mapping for the given key in a collection, and return the collection.
547547
# Examples
548548
```jldoctest
549549
julia> d = RobinDict("a"=>1, "b"=>2)
550-
RobinDict{String,Int64} with 2 entries:
550+
RobinDict{String, Int64} with 2 entries:
551551
"b" => 2
552552
"a" => 1
553553
554554
julia> delete!(d, "b")
555-
RobinDict{String,Int64} with 1 entry:
555+
RobinDict{String, Int64} with 1 entry:
556556
"a" => 1
557557
```
558558
"""

0 commit comments

Comments
 (0)