Skip to content

Commit 57400ab

Browse files
committed
Declare vector mutable
1 parent 950b6fe commit 57400ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

13_structs.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ Remember, we have to declare it as *mutable*! We can declare a new vec in two wa
6868

6969
```rust
7070
...
71-
let inputs = vec![];
71+
let mut inputs = vec![];
7272

7373
for _ in 0..input_length {
7474
let txid = read_txid(&mut bytes_slice);

0 commit comments

Comments
 (0)