Skip to content

Commit 2dfc322

Browse files
proskiulysses4ever
authored andcommitted
Adjust wording in the description how putStr works
1 parent 039d0a8 commit 2dfc322

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

markdown/source_md/input-and-output.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ teh
390390

391391
`putStr` is actually defined recursively with the help of `putChar`.
392392
The edge condition of `putStr` is the empty string, so if we're printing an empty string, just return an I/O action that does nothing by using `return ()`.
393-
If it's not empty, then print the first character of the string by doing `putChar` and then print of them using `putStr`.
393+
If it's not empty, then print the first character of the string by doing `putChar` and then print the remainder using `putStr` recursively.
394394

395395
```{.haskell:hs}
396396
putStr :: String -> IO ()

0 commit comments

Comments
 (0)