Skip to content

Commit

Permalink
docs: Fix type used in C++ example.
Browse files Browse the repository at this point in the history
  • Loading branch information
scoder committed Jun 15, 2021
1 parent 4eb71b3 commit 580b481
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/examples/tutorial/cython_tutorial/primes_cpp.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 580b481

Please sign in to comment.