Skip to content

Commit c73b2dd

Browse files
agilgur5leaanthony
andauthored
[v2] docs(menu): fix some syntax issues (#4726)
* [v2] docs(menu): fix some syntax issues - one line wasn't properly indented - one line was missing a closing brace and wouldn't compile as such noticed this while [answering a question on SO](https://stackoverflow.com/a/79827672/3431180) which linked to this page * add changelog entry per PR template * consistent 4 space indentation --------- Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
1 parent e37a7b9 commit c73b2dd

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

website/docs/reference/menus.mdx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ setting it in the [`Menu`](../reference/options.mdx#menu) application config, or
1111
An example of how to create a menu:
1212

1313
```go
14-
1514
app := NewApp()
1615

1716
AppMenu := menu.NewMenu()
@@ -29,7 +28,7 @@ An example of how to create a menu:
2928
})
3029

3130
if runtime.GOOS == "darwin" {
32-
AppMenu.Append(menu.EditMenu()) // On macOS platform, EditMenu should be appended to enable Cmd+C, Cmd+V, Cmd+Z... shortcuts
31+
AppMenu.Append(menu.EditMenu()) // On macOS platform, EditMenu should be appended to enable Cmd+C, Cmd+V, Cmd+Z... shortcuts
3332
}
3433

3534
err := wails.Run(&options.App{
@@ -40,7 +39,7 @@ An example of how to create a menu:
4039
Bind: []interface{}{
4140
app,
4241
},
43-
)
42+
})
4443
// ...
4544
```
4645

website/src/pages/changelog.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1616

1717
### Fixed
1818

19+
- Fixed menu reference syntax by @agilgur5 in [#4726](https://github.com/wailsapp/wails/pull/4726)
1920
- Fixed indentation in Application Development guide by @agilgur5 in [#4730](https://github.com/wailsapp/wails/pull/4730)
2021
- Updated Application Development guide to show imports in the `app.go` snippets by @agilgur5 in [#4731](https://github.com/wailsapp/wails/pull/4731)
2122
- Fixed link to CoC in Community Guide when there was a trailing slash by @agilgur5 in [#4732](https://github.com/wailsapp/wails/pull/4732)

0 commit comments

Comments
 (0)