Skip to content

Commit a4876b8

Browse files
oschwaldclaude
andcommitted
Update MMDB_read_node docs for >= bounds check
The implementation (maxminddb.c) uses >= to check node_number against node_count, so passing a node_number equal to node_count is also an error. Update the documentation to say "greater than or equal to" instead of "greater than". Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 90324f5 commit a4876b8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

doc/libmaxminddb.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -760,7 +760,7 @@ reference to an `MMDB_search_node_s` structure that will be populated by this
760760
function.
761761
762762
The return value is a status code. If you pass a `node_number` that is greater
763-
than the number of nodes in the database, this function will return
763+
than or equal to the number of nodes in the database, this function will return
764764
`MMDB_INVALID_NODE_NUMBER_ERROR`, otherwise it will return `MMDB_SUCCESS`.
765765
766766
The first node in the search tree is always node 0. If you wanted to iterate

0 commit comments

Comments
 (0)