Skip to content

Commit

Permalink
Add note to range docs
Browse files Browse the repository at this point in the history
  • Loading branch information
LivInTheLookingGlass committed Oct 4, 2024
1 parent 2de64d1 commit 4f3119f
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 1 deletion.
5 changes: 5 additions & 0 deletions docs/src/fortran/lib/ranges.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ ranges.f90

View source code :source:`fortran/include/ranges.f90`

.. note::

This module directly ports some of the logic found in Python's :external:py:obj:`range`. Because of that,
these functions are 0-indexed.

.. f:module:: ranges
.. f:function:: range_entry3(start, step, idx)
Expand Down
2 changes: 2 additions & 0 deletions docs/src/javascript/lib/ranges.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ ranges.js

View source code :source:`javascript/src/lib/ranges.js`

This module directly ports some of the logic found in Python's :external:py:obj:`range`.

.. js:autofunction:: ranges.rangeEntry3

.. js:autofunction:: ranges.rangeEntry4
Expand Down
5 changes: 4 additions & 1 deletion docs/src/lua/lib/range.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ range.lua

View source code :source:`lua/src/lib/range.lua`

This module directly ports some of the logic found in Python's :external:py:obj:`range`.
.. note::

This module directly ports some of the logic found in Python's :external:py:obj:`range`. Because of that,
these functions are 0-indexed.

.. lua:function:: range_entry3(start, step, idx)
Expand Down
2 changes: 2 additions & 0 deletions docs/src/rust/lib/ranges.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ ranges.rs

View source code :source:`rust/src/include/ranges.rs`

This module directly ports some of the logic found in Python's :external:py:obj:`range`.

Includes
--------

Expand Down

0 comments on commit 4f3119f

Please sign in to comment.