Skip to content

Commit 21cf568

Browse files
committed
Fix doctests
1 parent af7c6fc commit 21cf568

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/simple_varinfo.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,11 @@ julia> # (✓) Sort of fast, but only possible at runtime.
7070
7171
julia> # In addtion, we can only access varnames as they appear in the model!
7272
vi[@varname(x)]
73-
ERROR: KeyError: key x not found
73+
ERROR: getvalue: x was not found in the values provided
7474
[...]
7575
7676
julia> vi[@varname(x[1:2])]
77-
ERROR: KeyError: key x[1:2] not found
77+
ERROR: getvalue: x[1:2] was not found in the values provided
7878
[...]
7979
```
8080
@@ -177,11 +177,11 @@ julia> svi_dict[@varname(m.a[1])]
177177
1.0
178178
179179
julia> svi_dict[@varname(m.a[2])]
180-
ERROR: BoundsError: attempt to access 1-element Vector{Float64} at index [2]
180+
ERROR: getvalue: m.a[2] was not found in the values provided
181181
[...]
182182
183183
julia> svi_dict[@varname(m.b)]
184-
ERROR: type NamedTuple has no field b
184+
ERROR: getvalue: m.b was not found in the values provided
185185
[...]
186186
```
187187
"""

0 commit comments

Comments
 (0)