Skip to content

Commit

Permalink
chore: fix function names in comment
Browse files Browse the repository at this point in the history
Signed-off-by: lvyaoting <[email protected]>
  • Loading branch information
lvyaoting committed Apr 8, 2024
1 parent bde4e5b commit 92fa4a1
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion v2/internal/binding/reflect.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func isFunction(value interface{}) bool {
return reflect.ValueOf(value).Kind() == reflect.Func
}

// isStructPtr returns true if the value given is a struct
// isStruct returns true if the value given is a struct
func isStruct(value interface{}) bool {
return reflect.ValueOf(value).Kind() == reflect.Struct
}
Expand Down
2 changes: 1 addition & 1 deletion v2/internal/frontend/desktop/windows/winc/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func init() {
w32.InitCommonControlsEx(&initCtrls)
}

// SetAppIconID sets recource icon ID for the apps windows.
// SetAppIcon sets resource icon ID for the apps windows.
func SetAppIcon(appIconID int) {
AppIconID = appIconID
}
Expand Down
2 changes: 1 addition & 1 deletion v2/pkg/assetserver/assethandler.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ func (d *assetHandler) ServeHTTP(rw http.ResponseWriter, req *http.Request) {
}
}

// serveFile will try to load the file from the fs.FS and write it to the response
// serveFSFile will try to load the file from the fs.FS and write it to the response
func (d *assetHandler) serveFSFile(rw http.ResponseWriter, req *http.Request, filename string) error {
if d.fs == nil {
return os.ErrNotExist
Expand Down
2 changes: 1 addition & 1 deletion v2/pkg/assetserver/assetserver_webview.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func (d *AssetServer) processWebViewRequest(r webview.Request) {
}
}

// processHTTPRequest processes the HTTP Request by faking a golang HTTP Server.
// processWebViewRequestInternal processes the HTTP Request by faking a golang HTTP Server.
// The request will be finished with a StatusNotImplemented code if no handler has written to the response.
func (d *AssetServer) processWebViewRequestInternal(r webview.Request) {
uri := "unknown"
Expand Down
2 changes: 1 addition & 1 deletion v2/pkg/mac/notification_darwin.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"github.com/wailsapp/wails/v2/internal/shell"
)

// StartAtLogin will either add or remove this application to/from the login
// ShowNotification will either add or remove this application to/from the login
// items, depending on the given boolean flag. The limitation is that the
// currently running app must be in an app bundle.
func ShowNotification(title string, subtitle string, message string, sound string) error {
Expand Down
2 changes: 1 addition & 1 deletion v2/pkg/runtime/screen.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

type Screen = frontend.Screen

// ScreenGetAllScreens returns all screens
// ScreenGetAll returns all screens
func ScreenGetAll(ctx context.Context) ([]Screen, error) {
appFrontend := getFrontend(ctx)
return appFrontend.ScreenGetAll()
Expand Down

0 comments on commit 92fa4a1

Please sign in to comment.