Skip to content

Commit 0e05901

Browse files
improvements to docstrings thanks to @penelopesym
Co-authored-by: Penelope Yong <[email protected]>
1 parent d316306 commit 0e05901

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/model.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1333,8 +1333,8 @@ julia> @varname(x) in keys(vi)
13331333
true
13341334
```
13351335
1336-
Variable `a` is not tracked since it can be computed from the random variable `x` that was
1337-
tracked when running `demo1`:
1336+
The variable `a` is not tracked. However, it will be assigned the return value of `demo1`,
1337+
and can be used in subsequent lines of the model, as shown above.
13381338
```jldoctest submodel-returned
13391339
julia> @varname(a) in keys(vi)
13401340
false
@@ -1375,8 +1375,8 @@ julia> @varname(var"sub2.x") in keys(vi)
13751375
true
13761376
```
13771377
1378-
Variables `a` and `b` are not tracked since they can be computed from the random variables `sub1.x` and
1379-
`sub2.x` that were tracked when running `demo1`:
1378+
Variables `a` and `b` are not tracked, but are assigned the return values of the respective
1379+
calls to `demo1`:
13801380
```jldoctest submodel-returned-prefix
13811381
julia> @varname(a) in keys(vi)
13821382
false

0 commit comments

Comments
 (0)