Skip to content

Commit 27aff73

Browse files
authored
Merge pull request #23467 from JuliaLang/kf/docexample
Update conditional documentation example
2 parents e6dcc49 + fd06baa commit 27aff73

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/src/manual/documentation.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,13 +254,13 @@ Documentation written in non-toplevel blocks, such as `begin`, `if`, `for`, and
254254
added to the documentation system as blocks are evaluated. For example:
255255

256256
```julia
257-
if VERSION > v"0.5"
257+
if condition()
258258
"..."
259259
f(x) = x
260260
end
261261
```
262262

263-
will add documentation to `f(x)` when the condition is `true`. Note that even if `f(x)` goes
263+
will add documentation to `f(x)` when `condition()` is `true`. Note that even if `f(x)` goes
264264
out of scope at the end of the block, its documentation will remain.
265265

266266
### Dynamic documentation

0 commit comments

Comments
 (0)