Commit Graph

1415 Commits

Author SHA1 Message Date
Grenade
aadf4f12fe fix sample code bug & reformat some sample code (#557)
* Update 01.2.md

删除:
- 不支持断言

* Formatting 问题5.1 code

* Formatting 问题5.3 code

* Correct the translation

- correct `令 v := map1[key1] 可以将 key1 对应的值赋值为 v` to `令 v := map1[key1] 可以将 key1 对应的值赋值给 v`

* Modified sample code

- Add `defer fi.Close()` on `示例 12.7`

* Reformatting some sample code on 13.3

* Update 14.2.md

* Reformatting the sample code.
2018-11-22 07:22:11 -05:00
liyv
e538573122 1.切片arr1[:3],是不包括第四个元素 (#555) 2018-11-16 23:41:10 -05:00
Cooli7wa
3ed4f65f83 Add中week增加类型转换 (#554)
cannot use week (type float64) as type time.Duration in argument to t.Add
2018-11-05 16:41:30 -05:00
Joy_Zhang
cf7001dcd0 Update 14.2.md (#550) 2018-10-23 04:08:41 -04:00
Joy_Zhang
e0b1341f04 tokoi -> tokyo (#551) 2018-10-23 04:08:30 -04:00
Joy_Zhang
35b747efad tokoi -> tokyo (#552) 2018-10-23 04:08:15 -04:00
家伟 刘
d731e97104 切片的描述部分的修正 (#545)
* Update 07.4.md

* Update 07.2.md

修改切片的描述。
2018-10-15 22:00:56 -04:00
stack zhao
3618ac6047 加入书本下载 (#549) 2018-09-25 13:59:12 -04:00
Persevere Von
e80e7ed615 Update 04.2.md (#548)
提高翻译的可读性,我在读这句话的时候反复读了三四遍没看懂,最后看原文才看懂。附原文:
> Variables (like constants) contain data, and data can be of different data types, or types for short.
2018-09-21 11:53:06 -04:00
Persevere Von
6cd1b47c97 修正翻译错误 (#547)
原文 "Valid identifiers begin with a letter","letter" 这里是字母的意思
2018-09-20 15:04:44 -04:00
crackedcd
87a49f6d96 Update 04.7.md (#541)
* Update 04.7.md

原文存在歧义, 导致翻译时存在疑惑.

* Update 04.7.md

修复了原书有误的strings.IndexRune()函数说明.

* Update 04.7.md

follow owner's request "s/GO/Go".
2018-09-11 08:59:45 -04:00
crackedcd
80b74f6d08 Update min_interface.go (#543)
Min(data Miner) 方法存在bug,原因是: 该方法的逻辑类似冒泡排序, 将Miner类型变量的集合挨个两两比对,但方法中仅将两变量的较小值取出(Less()方法),并赋值记录为min,最后返回,并没有进行“冒泡”这个swap操作。
因此补充了Swap()相关的接口和实现定义,并补充了Swap()在Min()方法中的逻辑。
2018-09-10 06:34:37 -04:00
Chen Shuaimin
c28a3f0f68 update 14.4.md (#544) 2018-09-09 09:15:53 -04:00
crackedcd
86880b1bed Update 14.2.md (#542)
返回的通道的传递类型应为 item. 方法定义的返回类型, 应和方法体中return的一致, 即make(chan item).
2018-09-09 09:14:33 -04:00
GravityConstant
39fc34c47d can not get min value (#537) 2018-09-08 07:00:05 -04:00
crackedcd
b998a9462a Update 07.2.md (#540)
s := [3]int{1,2,3}[:] 会导致panic:
invalid operation [3]int literal[:] (slice of unaddressable value)
2018-09-06 20:17:52 -04:00
crackedcd
1a8952bcd4 Update 14.9.md (#539)
14.9 实现 Futures 模式 InverseFuture()定义没有返回值
2018-09-06 20:17:28 -04:00
cg
e19f2a9669 自举备注 (#534)
* 自举

* 版本补充
2018-09-06 06:15:09 -04:00
winddt
d6c4dd5a58 fix error (#533)
^2 = -3, ^2 is not equal to -11
2018-08-17 20:11:27 +08:00
Grenade
65898791c8 Formatting some sample code (#529)
* Update 01.2.md

删除:
- 不支持断言

* Formatting 问题5.1 code

* Formatting 问题5.3 code

* Correct the translation

- correct `令 v := map1[key1] 可以将 key1 对应的值赋值为 v` to `令 v := map1[key1] 可以将 key1 对应的值赋值给 v`
2018-07-24 19:36:39 +08:00
xin zhao
e3890e1115 update #16.1 (#530) 2018-07-24 19:36:03 +08:00
xin zhao
d44f630d0c update 15.3 (#528) 2018-07-20 19:18:20 +08:00
Grenade
74087f32bd Update 01.2.md (#526)
删除:
- 不支持断言
2018-07-19 19:22:18 +08:00
xin zhao
80aa74d155 update 15.2 (#527) 2018-07-19 19:22:04 +08:00
Yves_He
1aefffde04 修改病句 (#524)
少于一倍以上就有问题,Go比Java所使用的内存少4倍岂不是负3倍了?我猜测愿意是“Go所使用的内存是Java的五分之一”。
2018-07-18 20:06:42 +08:00
Yves_He
5e92e0a880 修改病句 (#525)
为什么......的原因,这是常见的病句
2018-07-18 20:06:21 +08:00
Lynn
de3c7dbdc9 Fix #520 (#521) 2018-07-16 17:11:40 +08:00
Lynn
a30c3bb4a0 Fix #513 (#519)
* Fix #513

* Change code block to bold
2018-07-16 06:20:53 +08:00
AlexC
e72890819f 修改错别字 (#518) 2018-07-09 11:32:45 +08:00
xin zhao
be8e19b53d 修改别名类型与原始类型的方法描述 (#517)
#515
2018-06-26 17:18:48 +08:00
Suika
24d46f6992 Fix code highlight (#514)
Fix code highlight
2018-06-18 18:19:43 +08:00
Sarlor
6159ed7a92 Update 14.1.md (#511)
fix some bug
2018-06-15 13:46:47 +08:00
ruotianMa
5ed27b7e42 update 09.11.md (#512)
官方包已经改名不用,现已经修改
2018-06-15 13:46:25 +08:00
xin zhao
f7ed339136 update 12.2.md (#510) 2018-06-13 21:42:32 +08:00
Sarlor
9df6283011 Update 15.1.md (#509)
fix some bug
2018-06-13 21:42:12 +08:00
Sarlor
f0d0b22b1a Update 13.1.md (#508)
fix some bug
2018-06-13 21:41:50 +08:00
Flygar
560909cbb4 Modify the path of sort.go (#507)
* Commit message: fix typo

* Modify the path of sort.go
2018-06-12 21:38:55 +08:00
blurty
ea414dbb85 fix case of shorter length of inputString (#506)
当读取的inputString的长度小于5时,string([]byte(string))会出现bug
2018-06-12 21:05:58 +08:00
Flygar
664624de09 Commit message: fix typo (#505) 2018-06-11 08:02:49 +08:00
xin zhao
8451d2cf3f update 11.14 (#504) 2018-06-10 11:17:36 +08:00
xin zhao
8647473d4f update 09.6.md (#503) 2018-06-08 08:07:14 +08:00
xin zhao
9f6f3a5b1f update 08.1.md (#502) 2018-06-06 21:27:15 +08:00
stevefoxuser
6e8dcffdf7 Update 12.3.md (#501)
Fixed a that if dstName file's length longer than srcName file io.Copy will cover only part content of srcName file.
If file srcName 's content is "abc", dstName's content is "1234" ,the result of io.Copy(dst, src) is "abc4" not "abc"
2018-06-06 10:11:39 +08:00
xin zhao
4a8399e92f update 18.10.md (#500) 2018-06-03 15:54:18 +08:00
Sarlor
7fae2eae94 Update 13.4.md (#498)
fix some bug
2018-05-31 07:43:10 +08:00
Sarlor
af8640d4d0 Update 12.6.md (#496)
将os.file修改为os.File
2018-05-29 09:54:51 +08:00
Sarlor
f2867dd349 Update 12.8.md (#497)
fix some bug
2018-05-29 09:54:43 +08:00
xin zhao
7854ee57e0 修改标点错误 (#494) 2018-05-28 20:37:33 +08:00
wenmingxing1
81285ba80c Update 10.6.md (#495)
一个语法小错误
2018-05-28 20:37:14 +08:00
Sarlor
9a4146eac8 Update 12.4.md (#492)
fix some bug
2018-05-26 09:29:15 +08:00