Skip to content
Permalink
Browse files
LINE ENDINGS 😢
  • Loading branch information
steveklabnik committed Oct 12, 2014
1 parent d300daa commit 2b7cef179b1ea6fe8fd6a4823edd73aa172767c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
@@ -5,7 +5,7 @@ extern char *hello_rust(void);

VALUE hello(void) {
char *hello = hello_rust();
printf("%s", hello);
printf("%s\n", hello);

This comment has been minimized.

Copy link
@igalic

igalic Oct 12, 2014

there should be a library function for that.


return Qnil;
}
@@ -12,7 +12,7 @@ use core::str::StrSlice;

#[no_mangle]
pub extern "C" fn hello_rust() -> *const u8 {
"Hello, world!".as_ptr()
"Hello, world!\0".as_ptr()
}

#[no_mangle]

0 comments on commit 2b7cef1

Please sign in to comment.