Skip to content

Commit ffbf4f8

Browse files
authored
Merge pull request #651 from rustfix/master
chore: fix function names in comment
2 parents b718cf4 + 05c54c6 commit ffbf4f8

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

robotgo_win.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ func SetForeg(hwnd win.HWND) bool {
5757
return win.SetForegroundWindow(hwnd)
5858
}
5959

60-
// GetMian get the main display hwnd
60+
// GetMain get the main display hwnd
6161
func GetMain() win.HWND {
6262
return win.GetActiveWindow()
6363
}

robotgo_x11.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ func DisplaysNum() int {
190190
return int(reply.Number)
191191
}
192192

193-
// GetMianId get the main display id
193+
// GetMainId get the main display id
194194
func GetMainId() int {
195195
conn, err := xgb.NewConn()
196196
if err != nil {

screen.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ import (
1616
"github.com/kbinani/screenshot"
1717
)
1818

19-
// GetScreenBound gets the display screen bounds
19+
// GetDisplayBounds gets the display screen bounds
2020
func GetDisplayBounds(i int) (x, y, w, h int) {
2121
bs := screenshot.GetDisplayBounds(i)
2222
return bs.Min.X, bs.Min.Y, bs.Dx(), bs.Dy()
2323
}
2424

25-
// GetDisplayBounds gets the display rect
25+
// GetDisplayRect gets the display rect
2626
func GetDisplayRect(i int) Rect {
2727
x, y, w, h := GetDisplayBounds(i)
2828
return Rect{

0 commit comments

Comments
 (0)