Correct typo found by https://goreportcard.com/
This commit is contained in:
zamadatix 2020-01-01 09:59:56 -05:00 committed by Hajime Hoshi
parent 51f4ba1320
commit c4dfc69c81
2 changed files with 2 additions and 2 deletions

View File

@ -211,7 +211,7 @@ func walk(n *Node, f func(n *Node) error) error {
func (p *Page) Extend(count int) bool { func (p *Page) Extend(count int) bool {
if p.rollbackExtension != nil { if p.rollbackExtension != nil {
panic("packing: Extend cannot be called without rolling back or commiting") panic("packing: Extend cannot be called without rolling back or committing")
} }
if p.size >= p.maxSize { if p.size >= p.maxSize {

View File

@ -771,7 +771,7 @@ func (u *UserInterface) loop(context driver.UIContext) error {
// On Windows, the focusing state might be always false (#987). // On Windows, the focusing state might be always false (#987).
// On Windows, even if a window is in another workspace, vsync seems to work. // On Windows, even if a window is in another workspace, vsync seems to work.
// Then let's assume the window is alwasy 'focused' as a workaround. // Then let's assume the window is always 'focused' as a workaround.
if runtime.GOOS != "windows" { if runtime.GOOS != "windows" {
unfocused = u.window.GetAttrib(glfw.Focused) == glfw.False unfocused = u.window.GetAttrib(glfw.Focused) == glfw.False
} }