adamchalmers / adamchalmers/const_generic_grid

Typo in vector2d initialization

オープン
#1 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Rust
スター
1
フォーク
1
PR マージ指標
30日以内にマージされた PR はありません

説明

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!

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。