From eb38f4865ec891022410cb09c8178a1062569a3f Mon Sep 17 00:00:00 2001 From: Jinqiu Yu Date: Fri, 23 Mar 2018 23:17:29 +0800 Subject: [PATCH] Fix another typo --- common/buf/buffer.go | 2 +- proxy/context.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/common/buf/buffer.go b/common/buf/buffer.go index 51d3ed8b7..d2ca828e6 100644 --- a/common/buf/buffer.go +++ b/common/buf/buffer.go @@ -78,7 +78,7 @@ func (b *Buffer) Reset(writer Supplier) error { return err } -// BytesRange returns a slice of this buffer with given from and to bounary. +// BytesRange returns a slice of this buffer with given from and to boundary. func (b *Buffer) BytesRange(from, to int) []byte { if from < 0 { from += b.Len() diff --git a/proxy/context.go b/proxy/context.go index c3a1378c1..7bc551255 100644 --- a/proxy/context.go +++ b/proxy/context.go @@ -22,7 +22,7 @@ func ContextWithSource(ctx context.Context, src net.Destination) context.Context return context.WithValue(ctx, sourceKey, src) } -// SourceFromContext retreives source from the given context. +// SourceFromContext retrieves source from the given context. func SourceFromContext(ctx context.Context) (net.Destination, bool) { v, ok := ctx.Value(sourceKey).(net.Destination) return v, ok