mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-04-26 15:13:56 +00:00
Haskell: fix comment out of sync with code
This commit is contained in:
parent
17c69eeb16
commit
9e14fd6d36
@ -329,7 +329,7 @@ main' = interact countLines
|
|||||||
sayHello :: IO ()
|
sayHello :: IO ()
|
||||||
sayHello = do
|
sayHello = do
|
||||||
putStrLn "What is your name?"
|
putStrLn "What is your name?"
|
||||||
name <- getLine -- this gets a line and gives it the name "input"
|
name <- getLine -- this gets a line and gives it the name "name"
|
||||||
putStrLn $ "Hello, " ++ name
|
putStrLn $ "Hello, " ++ name
|
||||||
|
|
||||||
-- Exercise: write your own version of `interact` that only reads
|
-- Exercise: write your own version of `interact` that only reads
|
||||||
|
Loading…
Reference in New Issue
Block a user