Skip to content

Commit

Permalink
chore: fix some comments
Browse files Browse the repository at this point in the history
Signed-off-by: majorteach <[email protected]>
  • Loading branch information
majorteach authored and lmb committed Mar 26, 2024
1 parent 2528370 commit ad37d7f
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/ebpf/users.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ If you'd like to include a project on this page, feel free to open a pull reques
[`Cilium`](https://github.com/cilium/cilium)

: Kubernetes-oriented Container Networking Interface implementation providing
network policy and and observability.
network policy and observability.

[`containerd`](https://github.com/containerd/cgroups) & [`runc`](https://github.com/opencontainers/runc)

Expand Down
2 changes: 1 addition & 1 deletion elf_reader_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -889,7 +889,7 @@ func TestIPRoute2Compat(t *testing.T) {
}

// iproute2 (tc) pins maps in /sys/fs/bpf/tc/globals with PIN_GLOBAL_NS,
// which needs to be be configured in this library using MapOptions.PinPath.
// which needs to be configured in this library using MapOptions.PinPath.
// For the sake of the test, we use a tempdir on bpffs below.
ms.Pinning = PinByName

Expand Down
2 changes: 1 addition & 1 deletion examples/headers/bpf_helper_defs.h
Original file line number Diff line number Diff line change
Expand Up @@ -3773,7 +3773,7 @@ static struct socket *(*bpf_sock_from_file)(struct file *file) = (void *) 162;
* actual packet size (resulting in negative packet size) will in
* principle not exceed the MTU, why it is not considered a
* failure. Other BPF-helpers are needed for performing the
* planned size change, why the responsability for catch a negative
* planned size change, why the responsibility for catch a negative
* packet size belong in those helpers.
*
* Specifying *ifindex* zero means the MTU check is performed
Expand Down
2 changes: 1 addition & 1 deletion internal/feature.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func (ufe *UnsupportedFeatureError) Is(target error) bool {
type FeatureTest struct {
// The name of the feature being detected.
Name string
// Version in in the form Major.Minor[.Patch].
// Version in the form Major.Minor[.Patch].
Version string
// The feature test itself.
Fn FeatureTestFn
Expand Down
2 changes: 1 addition & 1 deletion internal/sys/signals.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func sigsetAdd(set *unix.Sigset_t, signal unix.Signal) error {
// For amd64, runtime.sigaddset() performs the following operation:
// set[(signal-1)/32] |= 1 << ((uint32(signal) - 1) & 31)
//
// This trick depends on sigset being two u32's, causing a signal in the the
// This trick depends on sigset being two u32's, causing a signal in the
// bottom 31 bits to be written to the low word if bit 32 is low, or the high
// word if bit 32 is high.

Expand Down

0 comments on commit ad37d7f

Please sign in to comment.