Fix comparison operator in API documentation

This commit is contained in:
grantseltzer
2022-01-04 21:17:07 -08:00
committed by Andrii Nakryiko
parent af2da673d8
commit bf7aacea49
+1 -1
View File
@@ -43,7 +43,7 @@ For example:
ptr = some_libbpf_api_returning_ptr();
if (!ptr) {
/* note no minus sign for EINVAL and E2BIG below */
if (errno = EINVAL) {
if (errno == EINVAL) {
/* handle EINVAL error */
} else if (errno == E2BIG) {
/* handle E2BIG error */