Skip to content

Commit

Permalink
form/element.go: Fix typo in Toggle documentation (#924)
Browse files Browse the repository at this point in the history
  • Loading branch information
theaddonn authored Oct 3, 2024
1 parent 209681f commit 8391c81
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions server/player/form/element.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,7 @@ func (i Input) Value() string {
type Toggle struct {
// Text is the text displayed over the toggle element. The text may contain Minecraft formatting codes.
Text string
// Default is the default value filled out in the input. The user may remove this value and fill out its
// own text. The text may contain Minecraft formatting codes.
// Default determines if the toggle should be on/off by default.
Default bool

value bool
Expand Down

0 comments on commit 8391c81

Please sign in to comment.