mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-26 16:53:10 +03:00
Merge pull request #358 from graue/patch-1
Haskell: fix comment out of sync with code
This commit is contained in:
commit
432869b397
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user