Skip to content

Commit 6cfd4a1

Browse files
committed
sdl: error: Fix documentation #265
1 parent 330f7ed commit 6cfd4a1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sdl/error.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const (
1414
LASTERROR = C.SDL_LASTERROR // the highest numbered predefined error
1515
)
1616

17-
// ErrorCode is an SDL error code for common errors.
17+
// ErrorCode is an error code used in SDL error messages.
1818
type ErrorCode uint32
1919
type cErrorCode C.SDL_errorcode
2020

@@ -41,7 +41,7 @@ func ClearError() {
4141
C.SDL_ClearError()
4242
}
4343

44-
// Error sets the SDL error message to the predefined string specified by code.
44+
// Error sets the SDL error message to the specified error code.
4545
func Error(code ErrorCode) {
4646
C.SDL_Error(code.c())
4747
}

0 commit comments

Comments
 (0)