Fixed a few typos for 02.8.md
This commit is contained in:
@@ -17,10 +17,10 @@ In this chapter, we mainly introduced the 25 Go keywords. Let's review what they
|
||||
- `select` is used to switch over multiple channels for communication.
|
||||
- `interface` is used to define interfaces.
|
||||
- `struct` is used to define special customized types.
|
||||
- `break`, `case`, `continue`, `for`, `fallthrough`, `else`, `if`, `switch`, `goto`, `default` were introduced in section 2.3.
|
||||
- `break`, `case`, `continue`, `for`, `fallthrough`, `else`, `if`, `switch`, `goto` and `default` were introduced in section 2.3.
|
||||
- `chan` is the type of channel for communication among goroutines.
|
||||
- `type` is used to define customized types.
|
||||
- `map` is used to define map which is like hash table in others languages.
|
||||
- `map` is used to define map which is similar to hash tables in other languages.
|
||||
- `range` is used for reading data from `slice`, `map` and `channel`.
|
||||
|
||||
If you understand how to use these 25 keywords, you've learned a lot of Go already.
|
||||
@@ -29,4 +29,4 @@ If you understand how to use these 25 keywords, you've learned a lot of Go alrea
|
||||
|
||||
- [Directory](preface.md)
|
||||
- Previous section: [Concurrency](02.7.md)
|
||||
- Next chapter: [Web foundation](03.0.md)
|
||||
- Next chapter: [Web foundation](03.0.md)
|
||||
|
||||
Reference in New Issue
Block a user