summaryrefslogtreecommitdiff
path: root/numpy/random/_examples/cython/extending.pyx
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/random/_examples/cython/extending.pyx')
-rw-r--r--numpy/random/_examples/cython/extending.pyx2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/random/_examples/cython/extending.pyx b/numpy/random/_examples/cython/extending.pyx
index 3a7f81aa0..30efd7447 100644
--- a/numpy/random/_examples/cython/extending.pyx
+++ b/numpy/random/_examples/cython/extending.pyx
@@ -31,7 +31,7 @@ def uniform_mean(Py_ssize_t n):
random_values = np.empty(n)
# Best practice is to acquire the lock whenever generating random values.
# This prevents other threads from modifying the state. Acquiring the lock
- # is only necessary if if the GIL is also released, as in this example.
+ # is only necessary if the GIL is also released, as in this example.
with x.lock, nogil:
for i in range(n):
random_values[i] = rng.next_double(rng.state)