4
0
Эх сурвалжийг харах

README.md: fix a broken test

Spurious "&mut" is a duplicate, "mbuff" has already been declared as
"mut" before. Remove it to fix test compilation.
Quentin Monnet 6 жил өмнө
parent
commit
f90087a0d6
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  1. 1 1
      README.md

+ 1 - 1
README.md

@@ -328,7 +328,7 @@ fn main() {
 
     // Here we must provide both a reference to the packet data, and to the
     // metadata buffer we use.
-    unsafe { assert_eq!(vm.prog_exec_jit(mem, &mut mbuff), 0x2211); }
+    unsafe { assert_eq!(vm.prog_exec_jit(mem, mbuff), 0x2211); }
 }
 ```