Skip to content

Commit e0f1ecd

Browse files
Fix type error in example
1 parent dfff7a6 commit e0f1ecd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

posts/inside-rust/2019-11-25-const-if-match.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ compile, even when the feature gate is enabled.
146146

147147
```rust
148148
const fn imprecise() -> Vec<i32> {
149-
let tuple: (Vec<i32>) = (Vec::new(),);
149+
let tuple: (Vec<i32>,) = (Vec::new(),);
150150
tuple.0
151151
}
152152
```

0 commit comments

Comments
 (0)