about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorTobias Bucher <tobiasbucher5991@gmail.com>2014-02-23 19:52:33 +0100
committerTobias Bucher <tobiasbucher5991@gmail.com>2014-02-23 20:55:02 +0100
commite9bb571affe69e9b116c7258eaa5c49d199adbdb (patch)
tree10b7ed5ce5768ec6e2d30cec3aea472da597effc /src
parent8786405047cadcfb5ec3a2d711ca264d74843c13 (diff)
downloadrust-e9bb571affe69e9b116c7258eaa5c49d199adbdb.tar.gz
rust-e9bb571affe69e9b116c7258eaa5c49d199adbdb.zip
Fix C function FFI example in the Rust cheatsheet
Diffstat (limited to 'src')
-rw-r--r--src/doc/complement-cheatsheet.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/doc/complement-cheatsheet.md b/src/doc/complement-cheatsheet.md
index 79f33a88562..debe4a27f56 100644
--- a/src/doc/complement-cheatsheet.md
+++ b/src/doc/complement-cheatsheet.md
@@ -211,7 +211,7 @@ Description            C signature                                    Equivalent
 ---------------------- ---------------------------------------------- ------------------------------------------
 no parameters          `void foo(void);`                              `fn foo();`
 return value           `int foo(void);`                               `fn foo() -> c_int;`
-function parameters    `void foo(int x, int y);`                      `fn foo(x: int, y: int);`
+function parameters    `void foo(int x, int y);`                      `fn foo(x: c_int, y: c_int);`
 in-out pointers        `void foo(const int* in_ptr, int* out_ptr);`   `fn foo(in_ptr: *c_int, out_ptr: *mut c_int);`
 
 Note: The Rust signatures should be wrapped in an `extern "ABI" { ... }` block.