diff options
| author | bjorn3 <bjorn3@users.noreply.github.com> | 2020-04-17 19:33:57 +0200 |
|---|---|---|
| committer | bjorn3 <bjorn3@users.noreply.github.com> | 2020-04-17 19:33:57 +0200 |
| commit | 51d07790df51eb50a2b90a410eec50b667e571fb (patch) | |
| tree | 5c953dc445c313638cabcf70d7e798e774c7e4a4 /example/alloc_example.rs | |
| parent | 9f602bf4dae1a86dde890552e3c0c7fa2ca9196f (diff) | |
| download | rust-51d07790df51eb50a2b90a410eec50b667e571fb.tar.gz rust-51d07790df51eb50a2b90a410eec50b667e571fb.zip | |
Use the correct return type for puts
Diffstat (limited to 'example/alloc_example.rs')
| -rw-r--r-- | example/alloc_example.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/example/alloc_example.rs b/example/alloc_example.rs index 20a8642cbd1..f75103c76a5 100644 --- a/example/alloc_example.rs +++ b/example/alloc_example.rs @@ -13,7 +13,7 @@ static ALLOC: System = System; #[link(name = "c")] extern "C" { - fn puts(s: *const u8); + fn puts(s: *const u8) -> i32; } #[panic_handler] |
