From ccb6671a2c0592180a9290e86a264623ccf5c21b Mon Sep 17 00:00:00 2001 From: Yug <53560276+Yug34@users.noreply.github.com> Date: Sun, 6 Apr 2025 20:02:00 +0530 Subject: [PATCH] Update implementing.md --- src/game-of-life/implementing.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/game-of-life/implementing.md b/src/game-of-life/implementing.md index 61597314..3a535532 100644 --- a/src/game-of-life/implementing.md +++ b/src/game-of-life/implementing.md @@ -154,6 +154,7 @@ To access the cell at a given row and column, we translate the row and column into an index into the cells vector, as described earlier: ```rust +#[wasm_bindgen] impl Universe { fn get_index(&self, row: u32, column: u32) -> usize { (row * self.width + column) as usize @@ -168,6 +169,7 @@ many of its neighbors are alive. Let's write a `live_neighbor_count` method to do just that! ```rust +#[wasm_bindgen] impl Universe { // ...