Skip to content

Commit d36ef79

Browse files
authored
correct minor typos (#1137)
* correct minor typos * Update tutorial.jl
1 parent b9aea2e commit d36ef79

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/src/tutorial.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ space = GridSpaceSingle(size; periodic = false, metric = :chebyshev)
216216
# ## Step 2: creating the agent type
217217

218218
# With this knowledge, let's now make the agent type for the Schelling segregation model.
219-
# According to the rules of the game, the agent needs to have two auxilary properties:
219+
# According to the rules of the game, the agent needs to have two auxiliary properties:
220220
# its mood (boolean) and the group it belongs to (integer). The agent also needs to
221221
# inherit from `GridAgent{2}` as in the example above. So, we define:
222222

@@ -225,7 +225,7 @@ space = GridSpaceSingle(size; periodic = false, metric = :chebyshev)
225225
group::Int # The group of the agent, determines mood as it interacts with neighbors
226226
end
227227

228-
# Let's explitily print the fields of the data structure `SchellingAgent` that we created:
228+
# Let's explicitly print the fields of the data structure `SchellingAgent` that we created:
229229

230230
for (name, type) in zip(fieldnames(SchellingAgent), fieldtypes(SchellingAgent))
231231
println(name, "::", type)
@@ -475,7 +475,7 @@ added_agent_1 = add_agent!((1, 1), schelling, false, 1)
475475

476476
added_agent_2 = add_agent!(schelling, false, 1)
477477

478-
# Notice also that agent fields may be specified by keyowrds as well,
478+
# Notice also that agent fields may be specified by keywords as well,
479479
# which is arguably the more readable syntax:
480480

481481
added_agent_3 = add_agent!(schelling; mood = true, group = 2)
@@ -732,7 +732,7 @@ model = StandardABM(
732732
)
733733

734734

735-
# When adding agents to the moedel example, we can explicitly make agents
735+
# When adding agents to the model example, we can explicitly make agents
736736
# with their constructors and add them. However, it is recommended
737737
# to use the automated [`add_agent!`](@ref) function and provide as a first argument
738738
# the type of agent to add. For example
@@ -757,7 +757,7 @@ model
757757
MultiSchelling
758758

759759
# This `MultiSchelling` is not a union type; it is an advanced construct
760-
# that wraps multipe types. When making a multi-agent directly (although it is not recommended,
760+
# that wraps multiple types. When making a multi-agent directly (although it is not recommended,
761761
# use `add_agent!` instead), we can wrap the agent type in the multiagent type like so
762762

763763
p = MultiSchelling(Politician(; id = 1, pos = random_position(model), preferred_demographic = 1))

0 commit comments

Comments
 (0)