Skip to content

Commit b3044a7

Browse files
committed
Fix Markdown error in displaying in en/02.3 & 02.4
1 parent d970f1d commit b3044a7

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

en/02.3.md

+5-4
Original file line numberDiff line numberDiff line change
@@ -501,16 +501,17 @@ There are some special operators when we import packages, and beginners are alwa
501501
import(
502502
. "fmt"
503503
)
504-
```
505-
The dot operator means you can omit the package name when you call functions inside of that package. Now `fmt.Printf("Hello world")` becomes to `Printf("Hello world")`.
504+
```
505+
506+
The dot operator means you can omit the package name when you call functions inside of that package. Now `fmt.Printf("Hello world")` becomes to `Printf("Hello world")`.
506507
2. Alias operation.
507508
It changes the name of the package that we imported when we call functions that belong to that package.
508509
```Go
509510
import(
510511
f "fmt"
511512
)
512513
```
513-
Now `fmt.Printf("Hello world")` becomes to `f.Printf("Hello world")`.
514+
Now `fmt.Printf("Hello world")` becomes to `f.Printf("Hello world")`.
514515
3. `_` operator.
515516
This is the operator that is difficult to understand without someone explaining it to you.
516517
```Go
@@ -519,7 +520,7 @@ import (
519520
_ "github.com/ziutek/mymysql/godrv"
520521
)
521522
```
522-
The `_` operator actually means we just want to import that package and execute its `init` function, and we are not sure if we want to use the functions belonging to that package.
523+
The `_` operator actually means we just want to import that package and execute its `init` function, and we are not sure if we want to use the functions belonging to that package.
523524

524525
## Links
525526

en/02.4.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ In the above example, we can see that all types can be embedded fields and we ca
181181

182182
There is one more problem however. If Human has a field called `phone` and Student has a field with same name, what should we do?
183183

184-
Go use a very simple way to solve it. The outer fields get upper access levels, which means when you access `student.phone`, we will get the field called phone in student, not the one in the Human struct. This feature can be simply seen as field `overload`ing.
184+
Go use a very simple way to solve it. The outer fields get upper access levels, which means when you access `student.phone`, we will get the field called phone in student, not the one in the Human struct. This feature can be simply seen as field `overloading`.
185185
```Go
186186
package main
187187

0 commit comments

Comments
 (0)