瀏覽代碼

README.md: Fix example by using an existing object file

The README.md would use a placeholder name for the object file in the
example, which is fine by itself but prevents us from validating the
example with "cargo test". Let's use an existing object file, so that
the program compiles and runs correctly.

Signed-off-by: Quentin Monnet <quentin@isovalent.com>
Quentin Monnet 2 年之前
父節點
當前提交
a471dffb8a
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      README.md

+ 1 - 1
README.md

@@ -387,7 +387,7 @@ use rbpf::helpers;
 fn main() {
     // Load a program from an ELF file, e.g. compiled from C to eBPF with
     // clang/LLVM. Some minor modification to the bytecode may be required.
-    let filename = "my_ebpf_object_file.o";
+    let filename = "examples/load_elf__block_a_port.o";
 
     let path = PathBuf::from(filename);
     let file = match elf::File::open_path(&path) {