adamchalmers / adamchalmers/const_generic_grid

Typo in vector2d initialization

Open
#1 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
1
Forks
1
PR merge metrics
No merged PRs in 30d

Description

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!

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.