Skip to content
Prev Previous commit
Next Next commit
Docs/ReST fix
  • Loading branch information
encukou committed Mar 21, 2024
commit 09c7bf7d07deb72a88285b837e80033993b00f53
5 changes: 3 additions & 2 deletions Doc/library/importlib.resources.rst
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,9 @@ For all the following functions:
importlib.resources.read_text(my_module, "info.txt")

Like :meth:`Traversable.joinpath <importlib.resources.abc.Traversable>`,
The individual components should use forward slashes `/` as path separators.
The following are equivalent::
The individual components should use forward slashes (``/``)
as path separators.
For example, the following are equivalent::

importlib.resources.read_binary(my_module, "pics/painting.png")
importlib.resources.read_binary(my_module, "pics", "painting.png")
Expand Down