gnolang / gno

Gno: An interpreted, stack-based Go virtual machine to build succinct and composable apps + Gno.land: a blockchain for timeless code and fair open-source
https://gno.land/
Other
839 stars 342 forks source link

fix(docs): missing 'false' return in Iterate() methods #2356

Closed agherasie closed 1 week ago

agherasie commented 1 week ago

Fixes https://github.com/gnolang/gno/issues/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

After:

image

Contributors' checklist... - [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).