Skip to content

Commit

Permalink
[Doc] Update field.md (taichi-dev#7819)
Browse files Browse the repository at this point in the history
Fixed a documentation error in vector fields declaration, which is
declared as a 4-dimension but say that vector dimension is 4

Issue: #

### Brief Summary

<!--
copilot:summary
-->
### <samp>🤖 Generated by Copilot at e09e1fe</samp>

Fix a typo and improve consistency in
`docs/lang/articles/basic/field.md`. Update the vector dimension of
`volumetric_field` to match the code example.

### Walkthrough

<!--
copilot:walkthrough
-->
### <samp>🤖 Generated by Copilot at e09e1fe</samp>

* Fix a typo and update the vector dimension of `volumetric_field` from
3 to 4, to match the code example
([link](https://github.com/taichi-dev/taichi/pull/7819/files?diff=unified&w=0#diff-5b7c8b1d0dee84f0dd4bf9a9aff720460c0eeb510d7372b8db9065ae63aa2089L268-R268))
  • Loading branch information
Zdmai authored and quadpixels committed May 13, 2023
1 parent 4b1c555 commit 66a166e
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 @@ -265,7 +265,7 @@ The layout of `f`:
└ └──────┴──────┴──────┘ ┘
```

The following code snippet declares a `300x300x300` vector field `volumetric_field`, whose vector dimension is 3:
The following code snippet declares a `300x300x300` vector field `volumetric_field`, whose vector dimension is 4:

```python
box_size = (300, 300, 300) # A 300x300x300 grid in a 3D space
Expand Down

0 comments on commit 66a166e

Please sign in to comment.