MCPcopy Create free account
hub / github.com/corrode/write-yourself-a-shell / read_line

Function read_line

examples/final.rs:150–156  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

148}
149
150fn read_line() -> String {
151 let mut line = String::new();
152 io::stdin()
153 .read_line(&mut line)
154 .expect("failed to read line from stdin");
155 line
156}
157
158fn chains_from_line(line: &str) -> impl Iterator<Item = Chain> {
159 // For simplicity sake, this workshop uses the split function.

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected