Skip to content

Commit 3aad34f

Browse files
committed
finally fixed doctests
1 parent 82578cf commit 3aad34f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/experimental.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,20 +68,20 @@ julia> model = model_with_random_support();
6868
julia> # Typed varinfo cannot handle this random support model properly
6969
# as using a single execution of the model will not see all random variables.
7070
# Hence, this this model requires untyped varinfo.
71-
varinfo = determine_suitable_varinfo(model);
71+
vi = determine_suitable_varinfo(model);
7272
┌ Warning: Model seems incompatible with typed varinfo. Falling back to untyped varinfo.
73-
└ @ DynamicPPLJETExt ~/Projects/public/DynamicPPL.jl/ext/DynamicPPLJETExt.jl:49
73+
└ @ DynamicPPLJETExt /drive-2/Projects/public/DynamicPPL.jl/ext/DynamicPPLJETExt.jl:48
7474
75-
julia> varinfo isa typeof(DynamicPPL.untyped_varinfo(model))
75+
julia> vi isa typeof(DynamicPPL.untyped_varinfo(model))
7676
true
7777
7878
julia> # In contrast, a simple model with no random support can be handled by typed varinfo.
7979
@model model_with_static_support() = x ~ Normal()
8080
model_with_static_support (generic function with 2 methods)
8181
82-
julia> varinfo = determine_suitable_varinfo(model_with_static_support());
82+
julia> vi = determine_suitable_varinfo(model_with_static_support());
8383
84-
julia> varinfo isa typeof(DynamicPPL.typed_varinfo(model_with_static_support()))
84+
julia> vi isa typeof(DynamicPPL.typed_varinfo(model_with_static_support()))
8585
true
8686
```
8787
"""

0 commit comments

Comments
 (0)