From e96e47fd2e5b7189dbb7a8a2c57a76c8608423fd Mon Sep 17 00:00:00 2001 From: Leeway Date: Thu, 15 Jul 2021 15:28:29 +0800 Subject: [PATCH] Update p10_wrap_existing_c_code_with_cython.rst MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 改一个错别字 --- source/c15/p10_wrap_existing_c_code_with_cython.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/c15/p10_wrap_existing_c_code_with_cython.rst b/source/c15/p10_wrap_existing_c_code_with_cython.rst index 507bd176..56c42675 100644 --- a/source/c15/p10_wrap_existing_c_code_with_cython.rst +++ b/source/c15/p10_wrap_existing_c_code_with_cython.rst @@ -178,7 +178,7 @@ def gcd(unsigned int x, unsigned int y): return csample.gcd(x,y) -对于简单的函数,你并不需要去做太多的时。 +对于简单的函数,你并不需要去做太多的事。 Cython会生成包装代码来正确的转换参数和返回值。 绑定到属性上的C数据类型是可选的。不过,如果你包含了它们,你可以另外做一些错误检查。 例如,如果有人使用负数来调用这个函数,会抛出一个异常: