diff --git a/README.md b/README.md index 5429b13..e5008b9 100644 --- a/README.md +++ b/README.md @@ -577,7 +577,7 @@ Log a static string, without any context or `printf`-style templating: ## Caveats -Note that zerolog does de-duplication fields. Using the same key multiple times creates multiple keys in final JSON: +Note that zerolog does no de-duplication of fields. Using the same key multiple times creates multiple keys in final JSON: ```go logger := zerolog.New(os.Stderr).With().Timestamp().Logger() @@ -587,4 +587,4 @@ logger.Info(). // Output: {"level":"info","time":1494567715,"time":1494567715,"message":"dup"} ``` -However, it’s not a big deal as JSON accepts dup keys; the last one prevails. +In this case, many consumers will take the last value, but this is not guaranteed; check yours if in doubt. diff --git a/log.go b/log.go index 846b9ca..21eb8e4 100644 --- a/log.go +++ b/log.go @@ -94,8 +94,8 @@ // Msg("dup") // // Output: {"level":"info","time":1494567715,"time":1494567715,"message":"dup"} // -// However, it’s not a big deal though as JSON accepts dup keys, -// the last one prevails. +// In this case, many consumers will take the last value, +// but this is not guaranteed; check yours if in doubt. package zerolog import (