Skip to content

Commit 0a0d6ef

Browse files
committed
Update lab.md
1 parent 73e0488 commit 0a0d6ef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/src/lecture_04/lab.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Plants have a simpler life. They simply grow if they have not reached their maxi
4040
<details class = "solution-body">
4141
<summary class = "solution-header">Solution:</summary><p>
4242
```
43-
```@example block
43+
```@setup block
4444
function agent_step!(p::Plant, w::World)
4545
if p.size < p.max_size
4646
p.size += 1
@@ -96,7 +96,7 @@ if a given ID is currently present in the `World`.
9696
<details class = "solution-body">
9797
<summary class = "solution-header">Solution:</summary><p>
9898
```
99-
```@example block
99+
```@setup block
100100
# make it possible to eat nothing
101101
eat!(::Animal, ::Nothing, ::World) = nothing
102102

0 commit comments

Comments
 (0)