Skip to content

Commit 9de0587

Browse files
Apply suggestions from code review
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
1 parent 360333d commit 9de0587

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Doc/c-api/intro.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ Docstring macros
177177
.. c:macro:: PyDoc_STRVAR(name, str)
178178
179179
Creates a variable with name *name* that can be used in docstrings.
180-
If Python is built :option:`without docstrings <--without-doc-strings>`,
180+
If Python is built without docstrings (:option:`--without-doc-strings`),
181181
the value will be an empty string.
182182

183183
Example::
@@ -195,7 +195,7 @@ Docstring macros
195195
.. c:macro:: PyDoc_STR(str)
196196
197197
Expands to the given input string, or an empty string
198-
if docstrings are :option:`disabled <--without-doc-strings>`.
198+
if docstrings are disabled (:option:`--without-doc-strings`).
199199

200200
Example::
201201

@@ -273,7 +273,7 @@ Numeric utilities
273273
274274
.. c:macro:: Py_ARITHMETIC_RIGHT_SHIFT(type, integer, positions)
275275
276-
Similar to :samp:`{integer} >> {positions{`, but forces sign extension,
276+
Similar to :samp:`{integer} >> {positions}`, but forces sign extension,
277277
as the C standard does not define whether a right-shift of a signed
278278
integer will perform sign extension or a zero-fill.
279279

0 commit comments

Comments
 (0)