diff options
| author | Brian Anderson <banderson@mozilla.com> | 2014-02-23 15:37:52 -0800 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2014-02-23 15:37:52 -0800 |
| commit | feac422dd4c3bee437a53938c896cd1da45aff04 (patch) | |
| tree | 27d27638e691cbe39aec74d66e69fc45a3ac02b1 | |
| parent | 0368886dbfdbb74c6496fb40a5b3cf8eb9f82c3a (diff) | |
| parent | e9bb571affe69e9b116c7258eaa5c49d199adbdb (diff) | |
| download | rust-feac422dd4c3bee437a53938c896cd1da45aff04.tar.gz rust-feac422dd4c3bee437a53938c896cd1da45aff04.zip | |
Merge remote-tracking branch 'tbu/pr_doc_smallfix'
| -rw-r--r-- | src/doc/complement-cheatsheet.md | 2 |
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. |
