Skip to content
This repository has been archived by the owner on Oct 17, 2023. It is now read-only.

Commit

Permalink
Update docs/language_concepts/data_types/04_arrays.md
Browse files Browse the repository at this point in the history
Co-authored-by: josh crites <jc@joshcrites.com>
  • Loading branch information
signorecello and critesjosh authored Sep 12, 2023
1 parent 342edbc commit 0570c65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/language_concepts/data_types/04_arrays.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ You can instantiate a new array of a fixed size with the same value repeated for
let array: [Field; 32] = [0; 32];
```

However, if you wish to convert an array to a [slice](./slices), you can just call `as_slice` on your array:
Like in Rust, arrays in Noir are a fixed size. However, if you wish to convert an array to a [slice](./slices), you can just call `as_slice` on your array:

```rust
let array: [Field; 32] = [0; 32];
Expand Down

0 comments on commit 0570c65

Please sign in to comment.