fix: fix a lot of incorrect links (#849)

This commit is contained in:
Rethan
2022-06-25 18:18:09 +08:00
committed by GitHub
parent 8f1ca5772e
commit 7a54d34d36
28 changed files with 69 additions and 69 deletions

View File

@@ -36,7 +36,7 @@ func main() {
如果原始 value 值不唯一那这么做肯定会出问题;这种情况下不会报错,但是当遇到不唯一的 key 时应当直接停止对调,且此时对调后的 `map` 很可能没有包含原 `map` 的所有键值对!一种解决方法就是仔细检查唯一性并且使用多值 `map`,比如使用 `map[int][]string` 类型。
**练习 8.2** [map_drinks.go](exercises\chapter_8\map_drinks.go)
**练习 8.2** [map_drinks.go](exercises/chapter_8/map_drinks.go)
构造一个将英文饮料名映射为法语(或者任意你的母语)的集合;先打印所有的饮料,然后打印原名和翻译后的名字。接下来按照英文名排序后再打印出来。