summaryrefslogblamecommitdiff
path: root/meap/ch3/src/main.rs
blob: b75e506315c40a9e06c31c96f343f9a1a82c55fc (plain) (tree)


















                                              
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