wowzer
This commit is contained in:
parent
0fef98efaf
commit
d1b04c13d1
5 changed files with 31 additions and 1 deletions
11
src/main.rs
11
src/main.rs
|
|
@ -1,3 +1,12 @@
|
|||
use std::fs::read;
|
||||
|
||||
fn main() {
|
||||
println!("Hello, world!");
|
||||
// arg 1: src, arg 2: dest
|
||||
let args: Vec<String> = std::env::args().collect();
|
||||
let input: String = std::fs::read_to_string(&args[1]).unwrap();
|
||||
let mut output = input;
|
||||
|
||||
// headings: replace # - newline to <h1> - </h1>
|
||||
|
||||
println!("{}", output);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue