summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatus Valo <matusvalo@users.noreply.github.com>2021-07-21 10:30:15 +0200
committerGitHub <noreply@github.com>2021-07-21 10:30:15 +0200
commitd5886e90b24052c42c61fe0a896cf94877318612 (patch)
tree0f3a7ce02c88b603111e840afcd2b39ed66b064d
parent20f478a778ba6c34ff8ccadb289bf01cfbe90b94 (diff)
downloadcython-d5886e90b24052c42c61fe0a896cf94877318612.tar.gz
docs: Change cast(...) -> cython.cast(...) in "language basics" examples (GH-4304)
-rw-r--r--docs/src/userguide/language_basics.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/src/userguide/language_basics.rst b/docs/src/userguide/language_basics.rst
index 6ccd7e804..99a9961e5 100644
--- a/docs/src/userguide/language_basics.rst
+++ b/docs/src/userguide/language_basics.rst
@@ -916,7 +916,7 @@ Cython uses ``"<"`` and ``">"``. In pure python mode, the ``cython.cast()`` fun
def main():
p: cython.p_char
q: cython.p_float
- p = cast(cython.p_char, q)
+ p = cython.cast(cython.p_char, q)
When casting a C value to a Python object type or vice versa,
Cython will attempt a coercion. Simple examples are casts like ``cast(int, pyobj_value)``,
@@ -1043,7 +1043,7 @@ direct equivalent in Python.
p: cython.p_char
q: cython.p_float
- p = cast(cython.p_char, q)
+ p = cython.cast(cython.p_char, q)
.. group-tab:: Cython