Skip to content
This repository has been archived by the owner on Dec 13, 2023. It is now read-only.

Commit

Permalink
Updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelS11 committed Oct 4, 2018
1 parent 17f95ec commit 3a0d1cb
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ func main() {
fmt.Printf("humidity: %v\n", humidity)
fmt.Printf("temperature: %v\n", temperature)
}

```


Expand Down Expand Up @@ -100,10 +99,10 @@ func main() {
fmt.Printf("humidity: %v\n", humidity)
fmt.Printf("temperature: %v\n", temperature)

// when done reading and to stop ReadBackground, close stop channel
// to stop ReadBackground after done with reading, close the stop channel
close(stop)

// can check stopped channel to get when ReadBackground has stopped
// can check stopped channel to know when ReadBackground has stopped
<-stopped
}
```
Expand Down Expand Up @@ -142,5 +141,4 @@ func main() {
fmt.Printf("humidity: %v\n", humidity)
fmt.Printf("temperature: %v\n", temperature)
}

```

0 comments on commit 3a0d1cb

Please sign in to comment.