Skip to content

Commit

Permalink
write out iterators exercise directions and prior knowledge
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelraz committed Jan 15, 2025
1 parent 8380e40 commit edfe96b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions exercise-templates/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ members = [
"rustlatin/*",
"tcp-echo-server",
"async-chat/*",
"iterators",
]
4 changes: 4 additions & 0 deletions exercise-templates/iterators/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,8 @@ name = "iterators"
version = "0.1.0"
edition = "2021"

[[bin]]
name = "iter1"
path = "src/bin/iter1.rs"

[dependencies]
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@ use std::io::BufReader;
use std::fs::File;
use std::error::Error;

#[test]
fn iterator_test() -> Result<(), Box<dyn Error>> {
fn main() -> Result<(), Box<dyn Error>> {
use crate::*;
let f = File::open("numbers.txt")?;
let f = File::open("../exercise-templates/iterators/numbers.txt")?;
let mut reader = BufReader::new(f);

// Write your iterator chain here
Expand Down

0 comments on commit edfe96b

Please sign in to comment.