Skip to content

Commit

Permalink
docs: update write-simple-dapp.md (gnolang#1770)
Browse files Browse the repository at this point in the history
Specify that you need to import the `bytes` library

<!-- please provide a detailed description of the changes made in this
pull request. -->

<details><summary>Contributors' checklist...</summary>

- [ ] Added new tests, or not needed, or not feasible
- [ ] Provided an example (e.g. screenshot) to aid review or the PR is
self-explanatory
- [ ] Updated the official documentation or not needed
- [ ] No breaking changes were made, or a `BREAKING CHANGE: xxx` message
was included in the description
- [ ] 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
kazai777 and leohhhn authored Mar 14, 2024
1 parent c20d4ec commit a006bc6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/how-to-guides/write-simple-dapp.md
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,14 @@ With that we have written the core functionality of the realm, and all that is l
the [Render function](http://localhost:3000/explanation/realms).
Its purpose is to help us display the state of the realm in Markdown, by formatting the state into a string buffer:

Add this library:
```go
import (
...
"bytes"
)
```

[embedmd]:# (../assets/how-to-guides/write-simple-dapp/poll-3.gno go)
```go
func Render(path string) string {
Expand Down

0 comments on commit a006bc6

Please sign in to comment.