From 42e70dd4e9258b142fca9fc01c639fb3c8e8f664 Mon Sep 17 00:00:00 2001 From: Lanco <35420416+lancoLiu@users.noreply.github.com> Date: Mon, 5 Jul 2021 18:27:37 +0800 Subject: [PATCH] fix typo (#976) --- buffer/buffer_test.go | 2 +- zapcore/error.go | 2 +- zapio/writer.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/buffer/buffer_test.go b/buffer/buffer_test.go index b5cd191d2..71ffac114 100644 --- a/buffer/buffer_test.go +++ b/buffer/buffer_test.go @@ -44,7 +44,7 @@ func TestBufferWrites(t *testing.T) { {"AppendUint", func() { buf.AppendUint(42) }, "42"}, {"AppendBool", func() { buf.AppendBool(true) }, "true"}, {"AppendFloat64", func() { buf.AppendFloat(3.14, 64) }, "3.14"}, - // Intenationally introduce some floating-point error. + // Intentionally introduce some floating-point error. {"AppendFloat32", func() { buf.AppendFloat(float64(float32(3.14)), 32) }, "3.14"}, {"AppendWrite", func() { buf.Write([]byte("foo")) }, "foo"}, {"AppendTime", func() { buf.AppendTime(time.Date(2000, 1, 2, 3, 4, 5, 6, time.UTC), time.RFC3339) }, "2000-01-02T03:04:05Z"}, diff --git a/zapcore/error.go b/zapcore/error.go index f2a07d786..74919b0cc 100644 --- a/zapcore/error.go +++ b/zapcore/error.go @@ -83,7 +83,7 @@ type errorGroup interface { Errors() []error } -// Note that errArry and errArrayElem are very similar to the version +// Note that errArray and errArrayElem are very similar to the version // implemented in the top-level error.go file. We can't re-use this because // that would require exporting errArray as part of the zapcore API. diff --git a/zapio/writer.go b/zapio/writer.go index bb3de3e57..05da32b38 100644 --- a/zapio/writer.go +++ b/zapio/writer.go @@ -55,7 +55,7 @@ type Writer struct { // Log level for the messages written to the provided logger. // - // If unspecifies, defaults to Info. + // If unspecified, defaults to Info. Level zapcore.Level buff bytes.Buffer