Skip to content

Commit f0166aa

Browse files
♻️ Fix working to correctly describe piping input (#106)
1 parent 02be554 commit f0166aa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

markdown/source_md/input-and-output.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -788,7 +788,7 @@ so am i
788788
short
789789
```
790790

791-
We pipe the contents of *shortlines.txt* into the output of *shortlinesonly* and as the output, we only get the short lines.
791+
We pipe the contents of *shortlines.txt* into *shortlinesonly*, and the output contains only the short lines.
792792

793793
This pattern of getting some string from the input, transforming it with a function and then outputting that is so common that there exists a function which makes that even easier, called `interact`{.label .function}.
794794
`interact` takes a function of type `String -> String` as a parameter and returns an I/O action that will take some input, run that function on it and then print out the function's result.

0 commit comments

Comments
 (0)