Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update 2.rst #166

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Update 2.rst #166

wants to merge 3 commits into from

Conversation

Haceau-Zoac
Copy link

@Haceau-Zoac Haceau-Zoac commented Feb 14, 2022

第2章一处缺少一行代码

原文:

ghci> :load myDrop.hs
[1 of 1] Compiling Main             ( myDrop.hs, interpreted )
Ok, modules loaded: Main.
-- ……

译文:

[1 of 1] Compiling Main             ( myDrop.hs, interpreted )
Ok, modules loaded: Main.
-- ……

有一处缺少一个空格(格式问题)

原文:

def myDrop(n, elts):
    while n > 0 and elts:
        n = n - 1
        elts = elts[1:]
    return elts

译文:

def myDrop(n, elts):
    while n > 0 and elts:
        n = n -1 # 这里
        elts = elts[1:]
    return elts

一处缺了两行

原文:

ghci> :type (1 - 1) <= 0
(1 - 1) <= 0 :: Bool
ghci> 1 - 1
0
ghci> 0 <= 0
True

译文:

*Main> :type (1 - 1) <= 0
(1 - 1) <= 0 :: Bool

第2章缺少一行代码
缺少空格
缺少代码
@alingse
Copy link

alingse commented Sep 15, 2022

@huangz1990 有空看看

@WendaoLee
Copy link

@huangz1990 我帮忙review了一下,是存在这些问题的,并且给出的校对也符合原文.希望您有空的时候可以merge一下该pr.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants