Skip to content

Commit

Permalink
chore: adjust formatting (auto-format)
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaeldtinoco committed Aug 24, 2022
1 parent 3cc2736 commit 5801272
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions libbpfgo.go
Original file line number Diff line number Diff line change
Expand Up @@ -988,11 +988,11 @@ func (b *BPFMap) DeleteKey(key unsafe.Pointer) error {
//
// For example:
//
// key := 1
// value := []byte{'a', 'b', 'c'}
// keyPtr := unsafe.Pointer(&key)
// valuePtr := unsafe.Pointer(&value[0])
// bpfmap.Update(keyPtr, valuePtr)
// key := 1
// value := []byte{'a', 'b', 'c'}
// keyPtr := unsafe.Pointer(&key)
// valuePtr := unsafe.Pointer(&value[0])
// bpfmap.Update(keyPtr, valuePtr)
func (b *BPFMap) Update(key, value unsafe.Pointer) error {
return b.UpdateValueFlags(key, value, MapFlagUpdateAny)
}
Expand Down

0 comments on commit 5801272

Please sign in to comment.