Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix another typo #985

Merged
merged 1 commit into from
Mar 24, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion common/buf/buffer.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion proxy/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down