Skip to content
This repository has been archived by the owner on Mar 23, 2020. It is now read-only.

Add io assignment #158

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from
Draft

Add io assignment #158

wants to merge 5 commits into from

Conversation

Mirabellensaft
Copy link
Contributor

No description provided.

@skade
Copy link
Collaborator

skade commented Feb 18, 2020

After thinking a little about it, I would put all of the taks in separate paragraphs instead of putting them in a dense of tasks. They are sufficiently disparate in their end form and introduce a lot of semantics, maybe meriting more comments. E.g. introducing a BufferedReader to people that never though much about buffering.

The code examples are really good!

---
== Tasks

* Find out, what type the variable f is. Either your IDE shows you, or you can assign a random type to the variable, and run the program.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* Find out, what type the variable f is. Either your IDE shows you, or you can assign a random type to the variable, and run the program.
* Find out what type the variable f is. Either your IDE shows you, or you can assign a random type to the variable, and run the program.


let mut buf_reader = BufReader::new(file);
let mut content_string = String::new();
buf_reader.read_to_string(&mut content_string).unwrap();
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fn main() -> std::io::Result<()> would allow us to use ? instead of unwrap here.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants