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

Function read_line

examples/block3.rs:264–270  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

262}
263
264fn read_line() -> String {
265 let mut line = String::new();
266 io::stdin()
267 .read_line(&mut line)
268 .expect("failed to read line from stdin");
269 line
270}
271
272fn chains_from_line(line: String) -> Vec<Chain> {
273 // For simplicity's sake, this workshop uses the split function.

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected