Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[doc] Fix spelling of "paticle_field" #7024

Merged
merged 1 commit into from
Jan 16, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix spelling of "paticle_field"
  • Loading branch information
AlienKevin authored and taichi-gardener committed Jan 3, 2023

Verified

This commit was signed with the committer’s verified signature. The key has expired.
horenmar Martin Hořeňovský
commit 7adf1441509c495520f127002324e781849bb56c
2 changes: 1 addition & 1 deletion docs/lang/articles/basic/field.md
Original file line number Diff line number Diff line change
@@ -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