We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 73e0488 commit 0a0d6efCopy full SHA for 0a0d6ef
docs/src/lecture_04/lab.md
@@ -40,7 +40,7 @@ Plants have a simpler life. They simply grow if they have not reached their maxi
40
<details class = "solution-body">
41
<summary class = "solution-header">Solution:</summary><p>
42
```
43
-```@example block
+```@setup block
44
function agent_step!(p::Plant, w::World)
45
if p.size < p.max_size
46
p.size += 1
@@ -96,7 +96,7 @@ if a given ID is currently present in the `World`.
96
97
98
99
100
# make it possible to eat nothing
101
eat!(::Animal, ::Nothing, ::World) = nothing
102
0 commit comments