mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-21 17:46:58 -05:00
Fix another typo
This commit is contained in:
parent
a8a68c2e70
commit
eb38f4865e
@ -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()
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user