From 4063006bb718568755d45a453fe2748200449fd5 Mon Sep 17 00:00:00 2001 From: noah Date: Sun, 22 Dec 2024 08:11:06 -0600 Subject: [PATCH] feedback --- aya/src/bpf.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aya/src/bpf.rs b/aya/src/bpf.rs index d77211ec..3e7e816d 100644 --- a/aya/src/bpf.rs +++ b/aya/src/bpf.rs @@ -375,7 +375,7 @@ impl<'a> EbpfLoader<'a> { /// Loads eBPF bytecode from a buffer. /// - /// The program will need to be aligned properly for you to use it. + /// The buffer will need to be aligned to 4 bytes. /// If you are bundling this statically into your binary, it is recommended that you do so /// using [`include_bytes_aligned`](crate::include_bytes_aligned). /// @@ -902,7 +902,7 @@ impl Ebpf { /// [maps](crate::maps) defined in it. If the kernel supports [BTF](Btf) /// debug info, it is automatically loaded from `/sys/kernel/btf/vmlinux`. /// - /// The program will need to be aligned properly for you to use it. + /// The buffer will need to be aligned to 4 bytes. /// If you are bundling this statically into your binary, it is recommended that you do so /// using [`include_bytes_aligned`](crate::include_bytes_aligned). ///