Fix typo in context cancellation docs

This commit is contained in:
Harlow Ward 2019-09-02 07:47:10 -07:00
parent 4c2aaf78a2
commit e3ee95b282

View file

@ -84,7 +84,7 @@ return consumer.SkipCheckpoint
return errors.New("my error, exit all scans")
```
Use context cancel to signal the scan to exit without error. For example if we wanted to gracefulloy exit the scan on interrupt.
Use context cancel to signal the scan to exit without error. For example if we wanted to gracefully exit the scan on interrupt.
```go
// trap SIGINT, wait to trigger shutdown