]> git.lizzy.rs Git - rust.git/commitdiff
Fix more rollup problems
authorSteve Klabnik <steve@steveklabnik.com>
Sat, 17 Jan 2015 20:25:42 +0000 (15:25 -0500)
committerSteve Klabnik <steve@steveklabnik.com>
Sat, 17 Jan 2015 20:25:42 +0000 (15:25 -0500)
src/doc/trpl/ffi.md

index b4c181b7e72d91de50da68b0b28f6a4ff691ddf5..640f9cc388ef00a9beff06e90815c2a768288a78 100644 (file)
@@ -529,6 +529,7 @@ fairly easy, but requires a few things:
 pub extern fn hello_rust() -> *const u8 {
     "Hello, world!\0".as_ptr()
 }
+# fn main() {}
 ```
 
 The `extern` makes this function adhere to the C calling convention, as