Skip to content

Commit

Permalink
docs: added global examples for count() and mode() (#2014)
Browse files Browse the repository at this point in the history
I noticed a few of the functions that had global versions to search the whole file were missing examples, I have added them
  • Loading branch information
latonis authored Nov 29, 2023
1 parent b67b6c6 commit 2f34978
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/modules/math.rst
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,8 @@ file and create signatures based on those results.

*Example: math.count(0x4A) >= 10*

*Example: math.count(0x00, 0, 4) < 2*

.. c:function:: percentage(byte, offset, size)
.. versionadded:: 4.2.0
Expand Down Expand Up @@ -166,6 +168,8 @@ file and create signatures based on those results.

*Example: math.mode(0, filesize) == 0xFF*

*Example: math.mode() == 0x00*

.. c:function:: to_string(int)
.. versionadded:: 4.3.0
Expand Down

0 comments on commit 2f34978

Please sign in to comment.