关胜
|
523e81ec43
|
Update ch1-03.md
如果在windows下默认换行可能是\r\n,如果仍然使用\n最后没有空行,其他行分割后都多\r,最后一行分割后没有\r将会计数错误
|
2024-05-28 19:12:37 +08:00 |
|
iGmainC
|
99929b676b
|
style(ch1-03): 优化排版
|
2022-08-08 13:06:43 +08:00 |
|
kimw
|
7ebd75aeae
|
修正半角标点符号
|
2018-06-09 16:36:07 +00:00 |
|
Xargin
|
686f88c60e
|
fix typo
diff --git a/ch1/ch1-03.md b/ch1/ch1-03.md
index 2861424..866573f 100644
--- a/ch1/ch1-03.md
+++ b/ch1/ch1-03.md
@@ -37,7 +37,7 @@ func main() {
(译注:从功能和实现上说,`Go`的`map`类似于`Java`语言中的`HashMap`,Python语言中的`dict`,`Lua`语言中的`table`,通常使用`hash`实现。遗憾的是,对于该词的翻译并不统一,数学界术语为`映射`,而计算机界众说纷纭莫衷一是。为了防止对读者造成误解,保留不译。)
-每次`dup`读取一行输入,该行被当做`map`,其对应的值递增。`counts[input.Text()]++`语句等价下面两句:
+每次`dup`读取一行输入,该行被当做键存入`map`,其对应的值递增。`counts[input.Text()]++`语句等价下面两句:
```go
line := input.Text()
|
2018-05-16 18:40:58 +08:00 |
|
zhliner
|
622f7fcc2c
|
第1章,局部字词修订。
|
2017-08-24 22:23:36 +08:00 |
|
Xargin
|
c654530129
|
fix typo
|
2017-07-19 19:09:37 +08:00 |
|
Xargin
|
1404ebde17
|
add link
|
2016-11-30 11:41:23 +08:00 |
|
custa
|
22f1a8a202
|
修正翻译错误
|
2016-08-07 21:59:29 +08:00 |
|
Akagi201
|
2f1470dad2
|
fix typo
|
2016-04-03 17:23:09 +08:00 |
|
chai2010
|
f6e06c9586
|
fixes #1
|
2016-02-19 11:04:41 +08:00 |
|
chai2010
|
2b37b23285
|
回到简体
|
2016-02-15 11:06:34 +08:00 |
|
chai2010
|
9dde0cb185
|
make loop
|
2016-02-01 10:11:50 +08:00 |
|
prife
|
c8b7a46c11
|
change half-width to full-width one and add missing sentences
|
2016-01-31 17:15:01 +08:00 |
|
prife
|
4043366409
|
refine c1-03.md according to discuss in the group
|
2016-01-31 16:30:32 +08:00 |
|
prife
|
cf6a5f00f9
|
polish the reset of ch1-03.md
|
2016-01-31 16:07:26 +08:00 |
|
prife
|
295bfac870
|
polish first part of ch1-03.md
|
2016-01-29 01:40:10 +08:00 |
|
chai2010
|
36784e0645
|
修复代码前的包路径
|
2016-01-20 21:08:13 +08:00 |
|
Xargin
|
87a64f2298
|
1.3润色
|
2016-01-19 19:23:06 +08:00 |
|
chai2010
|
e16eebfefa
|
Fix typo
Fixes #204
|
2016-01-18 12:07:14 +08:00 |
|
chai2010
|
9666211cd7
|
Fix typo
Fixes #198
|
2016-01-18 11:22:04 +08:00 |
|
chai2010
|
ba7261d140
|
make loop
|
2015-12-28 15:59:28 +08:00 |
|
chai2010
|
e15e88dad7
|
make loop
|
2015-12-26 20:05:30 +08:00 |
|
chai2010
|
83ce5ad1c2
|
ch1-03 review
|
2015-12-23 12:09:30 +08:00 |
|
chai2010
|
f9ac065e47
|
make loop
|
2015-12-18 14:49:31 +08:00 |
|
chai2010
|
c66a96ee52
|
update tw
|
2015-12-18 10:53:03 +08:00 |
|
chai2010
|
1693baf5de
|
good good study, day day up!
|
2015-12-09 15:45:11 +08:00 |
|