Skip to content

Commit be27f46

Browse files
authored
Merge pull request #785 from lcnr/patch-1
const generics beta: fix nit
2 parents 34049bb + 22f37f2 commit be27f46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: posts/2021-02-26-const-generics-mvp-beta.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ One difficulty lies in the necessity of having some way to compare unevaluated c
102102
// entities in the compiler, so we need a way to check
103103
// if they should be considered equal.
104104
fn foo<const N: usize>() -> [u8; N + 1] {
105-
[u8; N + 1]
105+
[0; N + 1]
106106
}
107107
```
108108

0 commit comments

Comments
 (0)