Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 48db2de

Browse files
committed
chore(toast.go): update comments for clarity in toast.go
1 parent fe8f96e commit 48db2de

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

toast.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
package goaster
22

3+
// Toast holds a message and its level.
34
type Toast struct {
45
Message string
5-
Level Level // Assuming ToastLevel is defined as before
6+
Level Level
67
}
78

8-
// NewToast creates and returns a new Message with the specified text and level.
9+
// NewToast creates a new Toast with a message and level.
910
func NewToast(msg string, level Level) Toast {
1011
return Toast{
1112
Message: msg,

0 commit comments

Comments
 (0)