Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(docs): missing 'false' return in Iterate() methods (gnolang#2356)
Fixes gnolang#2310 The example code provided in https://docs.gno.land/how-to-guides/write-simple-dapp/ was missing a `return false` inside the `Iterate()` method, resulting in a `missing return` error when attempting to deploy. This PR adds the missing return to the example code Before: ![image](https://github.com/gnolang/gno/assets/68433935/63c57440-4e1f-41e4-8b05-5772142cb5c6) After: ![image](https://github.com/gnolang/gno/assets/68433935/e880527c-d9f1-4b13-8a94-74771f44e7d9) <details><summary>Contributors' checklist...</summary> - [X] Added new tests, or not needed, or not feasible - [X] Provided an example (e.g. screenshot) to aid review or the PR is self-explanatory - [X] Updated the official documentation or not needed - [X] No breaking changes were made, or a `BREAKING CHANGE: xxx` message was included in the description - [X] Added references to related issues and PRs - [ ] Provided any useful hints for running manual tests - [ ] Added new benchmarks to [generated graphs](https://gnoland.github.io/benchmarks), if any. More info [here](https://github.com/gnolang/gno/blob/master/.benchmarks/README.md). </details> --------- Co-authored-by: Leon Hudak <[email protected]>
- Loading branch information