Created
January 21, 2020 15:46
-
-
Save fdrobidoux/b2816ae2590d55906b56c1f8abb19329 to your computer and use it in GitHub Desktop.
First time trying out Rust.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use std::io::{ stdout, BufWriter, Error }; | |
use std::result::{ Result }; | |
use ferris_says::say; | |
fn main() { | |
println!("Hello, world!"); | |
let _result = test_ferris(); | |
} | |
fn test_ferris() -> Result<(), Error> | |
{ | |
let stdout = stdout(); | |
let mut writer = BufWriter::new(stdout.lock()); | |
return say(b"The quick brown fox jumps over the lazy dogo OwO", 10, &mut writer); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment