Skip to content

Commit ad37d7f

Browse files
majorteachlmb
authored andcommitted
chore: fix some comments
Signed-off-by: majorteach <[email protected]>
1 parent 2528370 commit ad37d7f

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

docs/ebpf/users.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ If you'd like to include a project on this page, feel free to open a pull reques
1111
[`Cilium`](https://github.com/cilium/cilium)
1212

1313
: Kubernetes-oriented Container Networking Interface implementation providing
14-
network policy and and observability.
14+
network policy and observability.
1515

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

elf_reader_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -889,7 +889,7 @@ func TestIPRoute2Compat(t *testing.T) {
889889
}
890890

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

examples/headers/bpf_helper_defs.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3773,7 +3773,7 @@ static struct socket *(*bpf_sock_from_file)(struct file *file) = (void *) 162;
37733773
* actual packet size (resulting in negative packet size) will in
37743774
* principle not exceed the MTU, why it is not considered a
37753775
* failure. Other BPF-helpers are needed for performing the
3776-
* planned size change, why the responsability for catch a negative
3776+
* planned size change, why the responsibility for catch a negative
37773777
* packet size belong in those helpers.
37783778
*
37793779
* Specifying *ifindex* zero means the MTU check is performed

internal/feature.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ func (ufe *UnsupportedFeatureError) Is(target error) bool {
3737
type FeatureTest struct {
3838
// The name of the feature being detected.
3939
Name string
40-
// Version in in the form Major.Minor[.Patch].
40+
// Version in the form Major.Minor[.Patch].
4141
Version string
4242
// The feature test itself.
4343
Fn FeatureTestFn

internal/sys/signals.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ func sigsetAdd(set *unix.Sigset_t, signal unix.Signal) error {
6363
// For amd64, runtime.sigaddset() performs the following operation:
6464
// set[(signal-1)/32] |= 1 << ((uint32(signal) - 1) & 31)
6565
//
66-
// This trick depends on sigset being two u32's, causing a signal in the the
66+
// This trick depends on sigset being two u32's, causing a signal in the
6767
// bottom 31 bits to be written to the low word if bit 32 is low, or the high
6868
// word if bit 32 is high.
6969

0 commit comments

Comments
 (0)