Why “Empty do” error when my do isn't empty?

后端 未结 3 1529
野的像风
野的像风 2021-01-29 09:38

I am trying to create a menu which gives output based on user input. However, I get a empty do error even though I have code for it to do underneath it. Am I missing something?<

3条回答
  •  滥情空心
    2021-01-29 10:16

    The statements in a do block must be indented further than the start of the line containing the do. But you have other problems too, like using a let, which does not make sense here.

提交回复
热议问题