We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 330f7ed commit 6cfd4a1Copy full SHA for 6cfd4a1
sdl/error.go
@@ -14,7 +14,7 @@ const (
14
LASTERROR = C.SDL_LASTERROR // the highest numbered predefined error
15
)
16
17
-// ErrorCode is an SDL error code for common errors.
+// ErrorCode is an error code used in SDL error messages.
18
type ErrorCode uint32
19
type cErrorCode C.SDL_errorcode
20
@@ -41,7 +41,7 @@ func ClearError() {
41
C.SDL_ClearError()
42
}
43
44
-// Error sets the SDL error message to the predefined string specified by code.
+// Error sets the SDL error message to the specified error code.
45
func Error(code ErrorCode) {
46
C.SDL_Error(code.c())
47
0 commit comments