Skip to content

Commit 79d5863

Browse files
Updated collections.md: changed julia to jldoctest without modifying code
1 parent 04922e7 commit 79d5863

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

doc/src/base/collections.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55
Sequential iteration is implemented by the [`iterate`](@ref) function.
66
The general `for` loop:
77

8-
```julia
9-
for i in iter # or "for i = iter"
10-
# body
11-
end
8+
```jldoctest
9+
julia> for i in iter # or "for i = iter"
10+
# body
11+
end
1212
```
1313

1414
is translated into:
1515

16-
```julia
16+
```jldoctest
1717
next = iterate(iter)
1818
while next !== nothing
1919
(i, state) = next

0 commit comments

Comments
 (0)