Skip to content

Commit

Permalink
Fix small README errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Akshay Shah committed Feb 15, 2017
1 parent e5e74ed commit efb0ef8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ logger.Info("Failed to fetch URL.",
// Structured context as strongly-typed Field values.
zap.String("url", url),
zap.Int("attempt", tryNum),
zap.Duration("backoff", sleepFor),
zap.Duration("backoff", time.Second),
)
```

Expand Down Expand Up @@ -81,7 +81,7 @@ Log a static string, without any context or `printf`-style templating:
| Library | Time | Bytes Allocated | Objects Allocated |
| :--- | :---: | :---: | :---: |
| :zap: zap | 398 ns/op | 0 B/op | 0 allocs/op |
| :zap: zap (sugared) | 400 ns/op | 705 B/op | 2 allocs/op |
| :zap: zap (sugared) | 400 ns/op | 80 B/op | 2 allocs/op |
| standard library | 678 ns/op | 80 B/op | 2 allocs/op |
| logrus | 2778 ns/op | 1409 B/op | 25 allocs/op |
| go-kit | 1318 ns/op | 656 B/op | 13 allocs/op |
Expand Down

0 comments on commit efb0ef8

Please sign in to comment.