Skip to content

Commit 2d1e1cc

Browse files
committed
Fixes documentation of C variant category testers
1 parent f38a2ab commit 2d1e1cc

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -98,17 +98,17 @@ enum Code
9898

9999
#### C Variant ####
100100
```c
101-
int HttpStatus_isInformational(int code);
102-
int HttpStatus_isSuccessful(int code);
103-
int HttpStatus_isRedirection(int code);
104-
int HttpStatus_isClientError(int code);
105-
int HttpStatus_isServerError(int code);
101+
char HttpStatus_isInformational(int code);
102+
char HttpStatus_isSuccessful(int code);
103+
char HttpStatus_isRedirection(int code);
104+
char HttpStatus_isClientError(int code);
105+
char HttpStatus_isServerError(int code);
106106
```
107107
Return `1` if the given _code_ belongs to the corresponding class of status codes (see [RFC7231](https://tools.ietf.org/html/rfc7231#section-6)).
108108
Return `0` otherwise.
109109
110110
```c
111-
int HttpStatus_isError(int code);
111+
char HttpStatus_isError(int code);
112112
```
113113
Returns `1` if the given _code_ is either a client error, a server error or any non-standard error code.
114114
Non-standard error codes are status codes with a value of 600 or higher.

0 commit comments

Comments
 (0)