Haskell: fix comment out of sync with code

This commit is contained in:
Scott Feeney 2013-09-20 01:25:36 -04:00
parent 17c69eeb16
commit 9e14fd6d36

View File

@ -329,7 +329,7 @@ main' = interact countLines
sayHello :: IO ()
sayHello = do
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
-- Exercise: write your own version of `interact` that only reads