Skip to content

Commit

Permalink
updated more docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
torfjelde committed Nov 15, 2024
1 parent 0f20624 commit 99d99b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/submodel_macro.jl
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ julia> @model function demo2(x, y)
When we sample from the model `demo2(missing, 0.4)` random variable `x` will be sampled:
```jldoctest submodel
julia> vi = VarInfo(demo2(missing, 0.4));
┌ Warning: `@submodel model` is deprecated, use `@returned_quantities model` instead.
┌ Warning: `@submodel model` is deprecated, use `left ~ to_sampleable(model)` instead.
│ caller = ip:0x0
└ @ Core :-1
Expand Down Expand Up @@ -138,7 +138,7 @@ julia> # When `prefix` is unspecified, no prefix is used.
submodel_noprefix (generic function with 2 methods)
julia> @varname(x) in keys(VarInfo(submodel_noprefix()))
┌ Warning: `@submodel model` is deprecated, use `@returned_quantities model` instead.
┌ Warning: `@submodel model` is deprecated, use `left ~ to_sampleable(model)` instead.
│ caller = ip:0x0
└ @ Core :-1
true
Expand Down

0 comments on commit 99d99b3

Please sign in to comment.