Fix comparison operator in API documentation

This commit is contained in:
grantseltzer 2022-01-03 13:34:33 -05:00 committed by Andrii Nakryiko
parent af2da673d8
commit bf7aacea49

View File

@ -43,7 +43,7 @@ For example:
ptr = some_libbpf_api_returning_ptr(); ptr = some_libbpf_api_returning_ptr();
if (!ptr) { if (!ptr) {
/* note no minus sign for EINVAL and E2BIG below */ /* note no minus sign for EINVAL and E2BIG below */
if (errno = EINVAL) { if (errno == EINVAL) {
/* handle EINVAL error */ /* handle EINVAL error */
} else if (errno == E2BIG) { } else if (errno == E2BIG) {
/* handle E2BIG error */ /* handle E2BIG error */