1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-09-28 23:06:14 -04:00

Merge pull request #985 from yujinqiu/yet-another-typo

Fix another typo
This commit is contained in:
DarienRaymond 2018-03-24 20:42:01 +01:00 committed by GitHub
commit 1dadd54502
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -78,7 +78,7 @@ func (b *Buffer) Reset(writer Supplier) error {
return err 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 { func (b *Buffer) BytesRange(from, to int) []byte {
if from < 0 { if from < 0 {
from += b.Len() from += b.Len()

View File

@ -22,7 +22,7 @@ func ContextWithSource(ctx context.Context, src net.Destination) context.Context
return context.WithValue(ctx, sourceKey, src) 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) { func SourceFromContext(ctx context.Context) (net.Destination, bool) {
v, ok := ctx.Value(sourceKey).(net.Destination) v, ok := ctx.Value(sourceKey).(net.Destination)
return v, ok return v, ok