Browse Source

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 years ago
parent
commit
f90087a0d6
1 changed files with 1 additions and 1 deletions
  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
     // Here we must provide both a reference to the packet data, and to the
     // metadata buffer we use.
     // 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); }
 }
 }
 ```
 ```