Skip to content

Commit fc9447c

Browse files
committed
fix doctests
1 parent 18483ea commit fc9447c

File tree

3 files changed

+3
-18
lines changed

3 files changed

+3
-18
lines changed

src/ordered_robin_dict.jl

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -374,10 +374,7 @@ julia> pop!(d, "a")
374374
julia> pop!(d, "d")
375375
ERROR: KeyError: key "d" not found
376376
Stacktrace:
377-
[1] pop!(h::OrderedRobinDict{String, Int64}, key::String)
378-
@ DataStructures ~/.julia/dev/DataStructures/src/ordered_robin_dict.jl:357
379-
[2] top-level scope
380-
@ none:1
377+
[...]
381378
382379
julia> pop!(d, "e", 4)
383380
4

src/robin_dict.jl

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,6 @@ Return the value stored for the given key, or if no mapping for the key is prese
311311
```jldoctest
312312
julia> d = RobinDict("a"=>1, "b"=>2, "c"=>3);
313313
314-
315314
julia> get!(d, "a", 5)
316315
1
317316
@@ -515,17 +514,12 @@ Delete and return the mapping for `key` if it exists in `collection`, otherwise
515514
```jldoctest
516515
julia> d = RobinDict("a"=>1, "b"=>2, "c"=>3);
517516
518-
519517
julia> pop!(d, "a")
520518
1
521519
522520
julia> pop!(d, "d")
523521
ERROR: KeyError: key "d" not found
524-
Stacktrace:
525-
[1] pop!(h::RobinDict{String, Int64}, key0::String)
526-
@ DataStructures ~/.julia/dev/DataStructures/src/robin_dict.jl:505
527-
[2] top-level scope
528-
@ none:1
522+
[...]
529523
530524
julia> pop!(d, "e", 4)
531525
4

src/swiss_dict.jl

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,6 @@ Return the value stored for the given key, or if no mapping for the key is prese
411411
```jldoctest
412412
julia> d = SwissDict("a"=>1, "b"=>2, "c"=>3);
413413
414-
415414
julia> get!(d, "a", 5)
416415
1
417416
@@ -578,17 +577,12 @@ Delete and return the mapping for `key` if it exists in `collection`, otherwise
578577
```jldoctest
579578
julia> d = SwissDict("a"=>1, "b"=>2, "c"=>3);
580579
581-
582580
julia> pop!(d, "a")
583581
1
584582
585583
julia> pop!(d, "d")
586584
ERROR: KeyError: key "d" not found
587-
Stacktrace:
588-
[1] pop!(h::SwissDict{String, Int64}, key::String)
589-
@ DataStructures ~/.julia/dev/DataStructures/src/swiss_dict.jl:599
590-
[2] top-level scope
591-
@ none:1
585+
[...]
592586
593587
julia> pop!(d, "e", 4)
594588
4

0 commit comments

Comments
 (0)