Skip to content

Commit

Permalink
Fix spelling of "paticle_field"
Browse files Browse the repository at this point in the history
  • Loading branch information
AlienKevin committed Jan 3, 2023
1 parent 629a57a commit 836d38c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/lang/articles/basic/field.md
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ particle_field[0].pos = vec3(0) # particle_field is a 1D struct field, pos is a
particle_field.mass[0] = 1.0 # Sets the mass of the first particle in the field to 1.0
```
Considering that `paticle_field.mass` is a field consisting of all the `mass` members of the structs in `paticle_field`, you can also call `fill()` to set the members to a specific value all at once:
Considering that `particle_field.mass` is a field consisting of all the `mass` members of the structs in `particle_field`, you can also call `fill()` to set the members to a specific value all at once:
```python
particle_field.mass.fill(1.0) # Sets all mass of the particles in the struct field to 1.0
Expand Down

0 comments on commit 836d38c

Please sign in to comment.