Fix indentation
This commit is contained in:
parent
b922942c55
commit
5cff5267ab
14
go.md
14
go.md
|
@ -202,9 +202,9 @@ See: [Switch](https://github.com/golang/go/wiki/Switch)
|
||||||
### For loop
|
### For loop
|
||||||
|
|
||||||
```go
|
```go
|
||||||
for count := 0; count <= 10; count++ {
|
for count := 0; count <= 10; count++ {
|
||||||
fmt.Println("My counter is at", count)
|
fmt.Println("My counter is at", count)
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
See: [For loops](https://tour.golang.org/flowcontrol/1)
|
See: [For loops](https://tour.golang.org/flowcontrol/1)
|
||||||
|
@ -212,10 +212,10 @@ See: [For loops](https://tour.golang.org/flowcontrol/1)
|
||||||
### For-Range loop
|
### For-Range loop
|
||||||
|
|
||||||
```go
|
```go
|
||||||
entry := []string{"Jack","John","Jones"}
|
entry := []string{"Jack","John","Jones"}
|
||||||
for i, val := range entry {
|
for i, val := range entry {
|
||||||
fmt.Printf("At position %d, the character %s is present\n", i, val)
|
fmt.Printf("At position %d, the character %s is present\n", i, val)
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
See: [For-Range loops](https://gobyexample.com/range)
|
See: [For-Range loops](https://gobyexample.com/range)
|
||||||
|
|
Loading…
Reference in New Issue