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

fix(7.5): modify 7.5 chapter md style #866

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion eBook/07.5.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func AppendByte(slice []byte, data ...byte) []byte {

给定一个切片 `s []int` 和一个 `int` 类型的因子 `factor`,扩展 `s` 使其长度为 `len(s) * factor`。

**练习 7.10 ** [filter_slice.go](exercises/chapter_7/filter_slice.go)
**练习 7.10** [filter_slice.go](exercises/chapter_7/filter_slice.go)

用顺序函数过滤容器:`s` 是前 10 个整型的切片。构造一个函数 `Filter`,第一个参数是 `s`,第二个参数是一个 `fn func(int) bool`,返回满足函数 `fn` 的元素切片。通过 `fn` 测试方法测试当整型值是偶数时的情况。

Expand Down