Skip to content

Commit c3f5c49

Browse files
cpfifferyebai
authored andcommitted
Minor update for #786 (#811)
1 parent 2563776 commit c3f5c49

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/src/_docs/guide.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ Please note that Turing does not have native support for chains sampled in paral
144144

145145
### Sampling from an Unconditional Distribution (The Prior)
146146

147-
Turing allows you to sample from a declared model's prior by calling the model without specifying inputs or a sampler. In the below example, we specify a `gdemo` model which accepts two inputs, `x` and `y`.
147+
Turing allows you to sample from a declared model's prior by calling the model without specifying inputs or a sampler. In the below example, we specify a `gdemo` model which returns two variables, `x` and `y`. The model includes `x` and `y` as arguments, but calling the function without passing in `x` or `y` means that Turing's compiler will assume they are missing values to draw from the relevant distribution. The `return` statement is necessary to retrieve the sampled `x` and `y` values.
148148

149149
```julia
150150
@model gdemo(x, y) = begin

0 commit comments

Comments
 (0)