Last active
October 22, 2019 00:01
-
-
Save jesselawson/76d2f3e279060809bb943601b4ae8c7e to your computer and use it in GitHub Desktop.
Second Checkpoint, Getting Started with Rust by Building a Tiny Markdown Compiler (https://jesselawson.org/tutorials)
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
// Code for the Second Checkpoint | |
// Tutorial: https://jesselawson.org/rust/get-started-with-rust-by-building-a-tiny-markdown-compiler/ | |
// | |
// The purpose of this checkpoint is to ensure that you have a complete copy | |
// of the code in the tutorial up to the checkpoint. I want you to tinker and | |
// explore, but to keep up with the rest of the tutorial, make sure your | |
// code matches this checkpoint. | |
fn get_version() -> u16 { | |
1000 | |
} | |
fn usage() { | |
let the_version = get_version(); | |
println!("tinymd, a markdown compiler written by <YOUR NAME>"); | |
println!("The Version: {}", the_version); | |
} | |
fn main() { | |
usage(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment