Ver Fonte

fix: fix typo

Signed-off-by: Godones <chenlinfeng25@outlook.com>
Godones há 1 mês atrás
pai
commit
e13b464058
2 ficheiros alterados com 2 adições e 2 exclusões
  1. 1 1
      README.md
  2. 1 1
      src/lib.rs

+ 1 - 1
README.md

@@ -210,7 +210,7 @@ useful for programs that should be compatible with the Linux kernel and
 therefore must use specific helper numbers.
 
 ```rust,ignore
-pub fn register_allowed_memory(&mut self,, addrs_range: Range<u64>) -> ()
+pub fn register_allowed_memory(&mut self, addrs_range: Range<u64>) -> ()
 ```
 
 This function adds a list of memory addresses that the eBPF program is allowed

+ 1 - 1
src/lib.rs

@@ -71,7 +71,7 @@ pub mod lib {
     pub use self::core::mem;
     pub use self::core::mem::ManuallyDrop;
     pub use self::core::ptr;
-    pub use hashbrown::{HashMap,HashSet};
+    pub use hashbrown::{HashMap, HashSet};
 
     #[cfg(feature = "std")]
     pub use std::println;