Skip to content

Commit

Permalink
第六章:修复 strings_map.go 引用 (#848)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rethan authored Jun 20, 2022
1 parent 36742d0 commit 8f1ca57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eBook/06.7.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ type binOp func(a, b int) int
func run(op binOp, req *Request) { … }
```

**练习 6.7** [strings_map.go](exercises\chapter_6\strings_map.go)
**练习 6.7** [strings_map.go](exercises/chapter_6/strings_map.go)

`strings` 中的 `Map()` 函数和 `strings.IndexFunc()` 一样都是非常好的使用例子。请学习它的源代码并基于该函数书写一个程序,要求将指定文本内的所有非 ASCII 字符替换成问号 `'?'` 或空格 `' '`。您需要怎么做才能删除这些字符呢?

Expand Down

0 comments on commit 8f1ca57

Please sign in to comment.