From d7b64ed3e586e87dab96079f243fd2d36ea647ca Mon Sep 17 00:00:00 2001 From: Adam Carpenter <53hornet@gmail.com> Date: Wed, 27 Mar 2019 15:56:03 -0400 Subject: Started ch3 --- meap/ch3/src/main.rs | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 meap/ch3/src/main.rs (limited to 'meap/ch3/src') diff --git a/meap/ch3/src/main.rs b/meap/ch3/src/main.rs new file mode 100644 index 0000000..b75e506 --- /dev/null +++ b/meap/ch3/src/main.rs @@ -0,0 +1,19 @@ +type File = String; + +fn open(f: &mut File) { +} + +fn close(f: &mut File) { +} + +fn read(f: &mut File, save_to: &mut Vec) { +} + +fn main() { + let mut file1 = File::from("file1.txt"); + open(&mut file1); + //read(file1, vec![]); + close(&mut file1); +} + +// left off at listing 3.1 -- cgit v1.2.3