diff options
author | Adam Carpenter <53hornet@gmail.com> | 2019-03-27 15:56:03 -0400 |
---|---|---|
committer | Adam Carpenter <53hornet@gmail.com> | 2019-03-27 15:56:03 -0400 |
commit | d7b64ed3e586e87dab96079f243fd2d36ea647ca (patch) | |
tree | 258eed5ab9fa71c93e060b97ad1808d3ef212d7b /meap/ch3/src | |
parent | e9d1b916708054a354224c6fb9cd85139da47eab (diff) | |
download | learning-rust-d7b64ed3e586e87dab96079f243fd2d36ea647ca.tar.xz learning-rust-d7b64ed3e586e87dab96079f243fd2d36ea647ca.zip |
Started ch3
Diffstat (limited to 'meap/ch3/src')
-rw-r--r-- | meap/ch3/src/main.rs | 19 |
1 files changed, 19 insertions, 0 deletions
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<u8>) { +} + +fn main() { + let mut file1 = File::from("file1.txt"); + open(&mut file1); + //read(file1, vec![]); + close(&mut file1); +} + +// left off at listing 3.1 |