adamchalmers / adamchalmers/const_generic_grid

Typo in vector2d initialization

Aperta
#1 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Rust
Stelle
1
Fork
1
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

Hello,

I was reading your [blog post](https://blog.adamchalmers.com/grids-1/) and I think I found a mistake here.

https://github.com/adamchalmers/const_generic_grid/blob/3fada1b906d6f39965d1ed4cb339827cdd8caebc/src/vec2d.rs#L16

When you initialize the first vector with a for-loop, I think you meant to create lines of size `width`, and not `width * height`.

Otherwise thank you for the article, it is well written and useful for rust learners like me!

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.