Skip to content

Commit e20190c

Browse files
committed
Fix doctests
1 parent d25f0be commit e20190c

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

ext/AbstractPPLDistributionsExt.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ julia> hasvalue(d, @varname(x), MvNormal(zeros(3), I))
115115
false
116116
117117
julia> hasvalue(d, @varname(x), MvNormal(zeros(3), I); error_on_incomplete=true)
118-
ERROR: hasvalue: only partial values for `x` found in the values provided
118+
ERROR: only partial values for `x` found in the dictionary provided
119119
[...]
120120
```
121121
"""
@@ -214,7 +214,7 @@ julia> getvalue(d, @varname(x), MvNormal(zeros(2), I))
214214
215215
julia> # Use `hasvalue` to check for this case before calling `getvalue`.
216216
getvalue(d, @varname(x), MvNormal(zeros(3), I))
217-
ERROR: getvalue: `x` was not found in the values provided
217+
ERROR: `x` was not found in the dictionary provided
218218
[...]
219219
```
220220
"""

src/hasvalue.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ julia> getvalue(vals, @varname(x[1])) # different from `getindex`
5757
1.0
5858
5959
julia> getvalue(vals, @varname(x[2]))
60-
ERROR: getvalue: x[2] was not found in the values provided
60+
ERROR: x[2] was not found in the NamedTuple provided
6161
[...]
6262
```
6363
@@ -74,7 +74,7 @@ julia> getvalue(vals, @varname(x[1])) # different from `getindex`
7474
1.0
7575
7676
julia> getvalue(vals, @varname(x[2]))
77-
ERROR: getvalue: x[2] was not found in the values provided
77+
ERROR: x[2] was not found in the dictionary provided
7878
[...]
7979
```
8080
@@ -91,15 +91,15 @@ julia> getvalue(vals, @varname(x[1][1])) # different from `getindex`
9191
1.0
9292
9393
julia> getvalue(vals, @varname(x[1][2]))
94-
ERROR: getvalue: x[1][2] was not found in the values provided
94+
ERROR: x[1][2] was not found in the dictionary provided
9595
[...]
9696
9797
julia> getvalue(vals, @varname(x[2][1]))
98-
ERROR: getvalue: x[2][1] was not found in the values provided
98+
ERROR: x[2][1] was not found in the dictionary provided
9999
[...]
100100
101101
julia> getvalue(vals, @varname(x))
102-
ERROR: getvalue: x was not found in the values provided
102+
ERROR: x was not found in the dictionary provided
103103
[...]
104104
```
105105

0 commit comments

Comments
 (0)