Skip to content

Commit 0ecf933

Browse files
committed
Update doctests for 1.12
1 parent 7031176 commit 0ecf933

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/simple_varinfo.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ julia> vi[@varname(x[1:2])]
5858
5959
julia> # (×) If we don't provide the container...
6060
_, vi = DynamicPPL.evaluate_and_sample!!(rng, m, SimpleVarInfo()); vi
61-
ERROR: type NamedTuple has no field x
61+
ERROR: FieldError: type NamedTuple has no field `x`, available fields: `m`
6262
[...]
6363
6464
julia> # If one does not know the varnames, we can use a `OrderedDict` instead.
@@ -158,7 +158,7 @@ ERROR: BoundsError: attempt to access 1-element Vector{Float64} at index [2]
158158
[...]
159159
160160
julia> svi_nt[@varname(m.b)]
161-
ERROR: type NamedTuple has no field b
161+
ERROR: FieldError: type NamedTuple has no field `b`, available fields: `a`
162162
[...]
163163
```
164164

0 commit comments

Comments
 (0)