Skip to content

Commit

Permalink
fix minor typo in documentation (#3755)
Browse files Browse the repository at this point in the history
  • Loading branch information
alrex authored Aug 2, 2021
1 parent c256f70 commit b51b9f2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions model/pdata/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,7 @@ func (am AttributeMap) UpdateBool(k string, v bool) {
}

// Upsert performs the Insert or Update action. The AttributeValue is
// insert to the map that did not originally have the key. The key/value is
// inserted to the map that did not originally have the key. The key/value is
// updated to the map where the key already existed.
//
// Calling this function with a zero-initialized AttributeValue struct will cause a panic.
Expand All @@ -565,7 +565,7 @@ func (am AttributeMap) Upsert(k string, v AttributeValue) {
}

// UpsertString performs the Insert or Update action. The AttributeValue is
// insert to the map that did not originally have the key. The key/value is
// inserted to the map that did not originally have the key. The key/value is
// updated to the map where the key already existed.
func (am AttributeMap) UpsertString(k string, v string) {
if av, existing := am.Get(k); existing {
Expand All @@ -576,7 +576,7 @@ func (am AttributeMap) UpsertString(k string, v string) {
}

// UpsertInt performs the Insert or Update action. The int Value is
// insert to the map that did not originally have the key. The key/value is
// inserted to the map that did not originally have the key. The key/value is
// updated to the map where the key already existed.
func (am AttributeMap) UpsertInt(k string, v int64) {
if av, existing := am.Get(k); existing {
Expand All @@ -587,7 +587,7 @@ func (am AttributeMap) UpsertInt(k string, v int64) {
}

// UpsertDouble performs the Insert or Update action. The double Value is
// insert to the map that did not originally have the key. The key/value is
// inserted to the map that did not originally have the key. The key/value is
// updated to the map where the key already existed.
func (am AttributeMap) UpsertDouble(k string, v float64) {
if av, existing := am.Get(k); existing {
Expand All @@ -598,7 +598,7 @@ func (am AttributeMap) UpsertDouble(k string, v float64) {
}

// UpsertBool performs the Insert or Update action. The bool Value is
// insert to the map that did not originally have the key. The key/value is
// inserted to the map that did not originally have the key. The key/value is
// updated to the map where the key already existed.
func (am AttributeMap) UpsertBool(k string, v bool) {
if av, existing := am.Get(k); existing {
Expand Down Expand Up @@ -761,7 +761,7 @@ func (sm StringMap) Update(k, v string) {
}

// Upsert performs the Insert or Update action. The string value is
// insert to the map that did not originally have the key. The key/value is
// inserted to the map that did not originally have the key. The key/value is
// updated to the map where the key already existed.
func (sm StringMap) Upsert(k, v string) {
if skv, existing := sm.get(k); existing {
Expand Down
4 changes: 2 additions & 2 deletions processor/processorhelper/attraction.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ type ActionKeyValue struct {
// to attributes where the key does not exist.
// Either Value or FromAttribute must be set.
// UPSERT - Performs insert or update action depending on the attributes
// containing the key. The key/value is insert to attributes
// containing the key. The key/value is inserted to attributes
// that did not originally have the key. The key/value is updated
// for attributes where the key already existed.
// Either Value or FromAttribute must be set.
Expand Down Expand Up @@ -94,7 +94,7 @@ const (
UPDATE Action = "update"

// UPSERT performs the INSERT or UPDATE action. The key/value is
// insert to attributes that did not originally have the key. The key/value is
// inserted to attributes that did not originally have the key. The key/value is
// updated for attributes where the key already existed.
UPSERT Action = "upsert"

Expand Down

0 comments on commit b51b9f2

Please sign in to comment.