Skip to content

Commit e5fd0c8

Browse files
committed
sdl: fix misspellings
1 parent 99737f8 commit e5fd0c8

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

sdl/events.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -663,7 +663,7 @@ func WaitEventTimeout(timeout int) Event {
663663
return goEvent(&cevent)
664664
}
665665

666-
// WaitEvent swait indefinitely for the next available event.
666+
// WaitEvent waits indefinitely for the next available event.
667667
// (https://wiki.libsdl.org/SDL_WaitEvent)
668668
func WaitEvent() Event {
669669
var cevent CEvent

sdl/haptic.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ func (h *Haptic) NumEffects() (int, error) {
277277
return i, errorFromInt(i)
278278
}
279279

280-
// NumEffectsPlaying reutrns the number of effects a haptic device can play at the same time.
280+
// NumEffectsPlaying returns the number of effects a haptic device can play at the same time.
281281
// (https://wiki.libsdl.org/SDL_HapticNumEffectsPlaying)
282282
func (h *Haptic) NumEffectsPlaying() (int, error) {
283283
i := int(C.SDL_HapticNumEffectsPlaying(h.cptr()))

sdl/hints.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ const (
9999
// HintCallback is the function to call when the hint value changes.
100100
type HintCallback func(data interface{}, name, oldValue, newValue string)
101101

102-
// HintCallbackAndData contains a callback function and useradata.
102+
// HintCallbackAndData contains a callback function and userdata.
103103
type HintCallbackAndData struct {
104104
callback HintCallback // the function to call when the hint value changes
105105
data interface{} // data to pass to the callback function

sdl/timer_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77

88
// Both time.Sleep() and Delay() are only guaranteed to wait *at least* the
99
// given duration, so all tests only check that time differentials are at least
10-
// a cerain value.
10+
// a certain value.
1111

1212
func TestGetTicks(t *testing.T) {
1313
before := GetTicks()

0 commit comments

Comments
 (0)