From 8bb5c8fa97b1e0b9adc949145b0c810b3623f135 Mon Sep 17 00:00:00 2001 From: Zheng Ping Date: Sun, 2 Jul 2017 22:39:05 +0800 Subject: [PATCH] Update ch19-01-unsafe-rust.md --- src/ch19-01-unsafe-rust.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/ch19-01-unsafe-rust.md b/src/ch19-01-unsafe-rust.md index 0e64140..c920f7a 100644 --- a/src/ch19-01-unsafe-rust.md +++ b/src/ch19-01-unsafe-rust.md @@ -193,8 +193,7 @@ let slice = unsafe { #### 调用外部代码的`extern`函数是不安全的 -Sometimes, your Rust code may need to interact with code written in another -language. To do this, Rust has a keyword, `extern`, that facilitates creating +有时, 你的Rust代码需要与其它语言交互. To do this, Rust has a keyword, `extern`, that facilitates creating and using a *Foreign Function Interface* (FFI). Listing 19-8 demonstrates how to set up an integration with a function named `some_function` defined in an external library written in a language other than Rust. Functions declared