mirror of
https://github.com/netdata/libbpf.git
synced 2026-11-05 17:30:15 +08:00
Fix comparison operator in API documentation
This commit is contained in:
1 parent
af2da673d8
commit
bf7aacea49
1 file changed
+1
-1
+1
-1
@@ -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 */
|
||||
|
||||
Reference in new issue
Block a user