Skip to content

Commit

Permalink
Fix two documentation typos.
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisHines committed Jul 20, 2016
1 parent d235bef commit 9de3cf1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions log/doc.go
Expand Up @@ -80,12 +80,12 @@
// same logger to remain separate from other log events. Package log provides
// two simple solutions for concurrent safe logging.
//
// NewSyncWriter wraps a io.Writer and serializes each call to its Write
// NewSyncWriter wraps an io.Writer and serializes each call to its Write
// method. Using a SyncWriter has the benefit that the smallest practical
// portion of the logging logic is performed within a mutex, but it requires
// the formatting Logger to make only one call to Write per log event.
//
// NewSyncLogger wraps any Logger and serializes each to to its Log method.
// NewSyncLogger wraps any Logger and serializes each call to its Log method.
// Using a SyncLogger has the benefit that it guarantees each log event is
// handled atomically within the wrapped logger, but it typically serializes
// both the formatting and output logic. Use a SyncLogger if the formatting
Expand Down

0 comments on commit 9de3cf1

Please sign in to comment.