Skip to content

Commit 6a1d007

Browse files
authored
Fix links format and typo
* Fix "Since version" links format * Correct inherit.fds typo (change dot to underscore) Fixes #3609 and #4174
1 parent f740f43 commit 6a1d007

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

doc/reference/reference_lua/popen.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ Below is a list of all ``popen`` functions and handle methods.
258258
method is not called for a handle during its lifetime, the
259259
Lua GC will trigger the same freeing actions.
260260

261-
Since version 3.2.0, the ``inherit.fds`` option is added to the ``opts``
261+
Since version :doc:`3.2.0 </release/3.2.0>`, the ``inherit_fds`` option is added to the ``opts``
262262
table. The option allows define file descriptor numbers that should be
263263
left open in the child process if the ``close_fds`` flag is set to ``true``.
264264

@@ -746,7 +746,7 @@ Below is a list of all ``popen`` functions and handle methods.
746746
:param handle ph: handle of a child process created with
747747
:ref:`popen.new() <popen-new>` or
748748
:ref:`popen.shell() <popen-shell>`
749-
:param number timeout: since version 3.2.0. The parameter defines the period in seconds for the method to wait for a resolution. The default value is "infinity".
749+
:param number timeout: since version :doc:`3.2.0 </release/3.2.0>`. The parameter defines the period in seconds for the method to wait for a resolution. The default value is "infinity".
750750
:return: (if success) formatted result
751751

752752
(if failure) ``nil, err``
@@ -760,8 +760,8 @@ Below is a list of all ``popen`` functions and handle methods.
760760

761761
Possible error reasons when ``nil, err`` is returned are:
762762

763-
* ``TimedOut``: since version 3.2.0. The error means that the method has not reached the positive result but has reached the defined **timeout**.
764-
* ``ChannelIsClosed``: since version 3.2.0. The error is returned when the target popen handle is closed during the :wait() operation.
763+
* ``TimedOut``: since version :doc:`3.2.0 </release/3.2.0>`. The error means that the method has not reached the positive result but has reached the defined **timeout**.
764+
* ``ChannelIsClosed``: since version :doc:`3.2.0 </release/3.2.0>`. The error is returned when the target popen handle is closed during the :wait() operation.
765765

766766
The formatted result is a process status table (the same as the
767767
``status`` component of the table returned by

0 commit comments

Comments
 (0)