Skip to content

Commit

Permalink
docs: normalize name
Browse files Browse the repository at this point in the history
  • Loading branch information
Reasno committed Sep 2, 2021
1 parent 5963ef3 commit aecf7c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ctxmeta/ctxmeta.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ type KeyVal struct {
// didn't have Baggage injected into it previously via Inject.
var ErrNoBaggage = errors.New("no baggage in context")

// ErrIncompatibleType is returned by GetAs/Unmarshal if the value associated with a key
// ErrIncompatibleType is returned by Unmarshal if the value associated with a key
// isn't assignable to the provided target.
var ErrIncompatibleType = errors.New("incompatible type")

Expand All @@ -50,7 +50,7 @@ type Baggage struct {
}

// Unmarshal get the value at given path, and store it into the target variable. Target must
// be a pointer to an assignable type. Get will return ErrNotFound if the key
// be a pointer to an assignable type. Unmarshal will return ErrNotFound if the key
// is not found, and ErrIncompatibleType if the found value is not assignable to
// target. Unmarshal also implements contract.ConfigUnmarshaler.
func (b *Baggage) Unmarshal(path string, target interface{}) error {
Expand Down

0 comments on commit aecf7c8

Please sign in to comment.