Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Dec 11, 2022
1 parent fb416f0 commit a43b29a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/lang/articles/basic/field.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ The simplest way to declare a scalar field is to call `ti.field(dtype, shape)`,
```python
f_1d = ti.field(ti.i32, shape=9) # A 1D field of length 9
```
Over here we are defining a
Over here we are defining a
An illustration of `f_1d`:

```
Expand All @@ -58,7 +58,7 @@ The simplest way to declare a scalar field is to call `ti.field(dtype, shape)`,
There is little difference between a 0D field and a 1D field of length 1 except for their indexing rules. You *must* use `None` as the index to access a 0D field and `0` as the index to access a 1D field of length 1:

```python

f1 = ti.field(int, shape=())
f2 = ti.field(int, shape=1)

Expand Down

0 comments on commit a43b29a

Please sign in to comment.