wgctrl-rs: fix typo in comment

pull/36/head
Jake McGinty 2021-04-08 11:09:43 +09:00
parent 41fd9014c0
commit 99ee399b6e
1 changed files with 2 additions and 1 deletions

View File

@ -307,7 +307,8 @@ fn encode_name(name: &str) -> [c_char; 16] {
} }
pub fn exists() -> bool { pub fn exists() -> bool {
// Try to load the wireguard module is loaded if it was not before. // Try to load the wireguard module if it isn't already.
// This is only called once per lifetime of the process.
MODPROBE.call_once(|| { MODPROBE.call_once(|| {
Command::new("/sbin/modprobe") Command::new("/sbin/modprobe")
.arg("wireguard") .arg("wireguard")