Update ffi example in primer [skip ci] (#5)

Co-authored-by: ‘markhend’ <‘markhend@gmail.com’>
pull/9/head
Mark Henderson 2021-10-22 16:10:53 -05:00 committed by GitHub
parent 681df2069b
commit 81597d22fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -634,8 +634,8 @@ Let's import some C functions:
.. code:: python
from C import pow(float) -> float
pow(2.0) # 4.0
from C import pow(float, float) -> float
pow(2.0, 2.0) # 4.0
# Import and rename function
from C import puts(cobj) -> void as print_line # type cobj is C's pointer (void*, char*, etc.)