Skip to content

Commit

Permalink
Update docs/docs/noir/concepts/data_types/slices.mdx
Browse files Browse the repository at this point in the history
  • Loading branch information
TomAFrench authored Jun 17, 2024
1 parent a53fb5c commit ac9cdbc
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions docs/docs/noir/concepts/data_types/slices.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@ import Experimental from '@site/src/components/Notes/_experimental.mdx';
A slice is a dynamically-sized view into a sequence of elements. They can be resized at runtime, but because they don't own the data, they cannot be returned from a circuit. You can treat slices as arrays without a constrained size.

```rust
use std::slice;

fn main() -> pub Field {
fn main() -> pub u32 {
let mut slice: [Field] = &[0; 2];

let mut new_slice = slice.push_back(6);
Expand Down

0 comments on commit ac9cdbc

Please sign in to comment.