Commit 580b4817 authored by Stefan Behnel's avatar Stefan Behnel

docs: Fix type used in C++ example.

parent 4eb71b3b
......@@ -8,7 +8,7 @@ def primes(nb_primes: cython.uint):
p: vector[cython.int]
p.reserve(nb_primes) # allocate memory for 'nb_primes' elements.
n: cint = 2
n: cython.int = 2
while p.size() < nb_primes: # size() for vectors is similar to len()
for i in p:
if n % i == 0:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment