summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorLinus Färnstrand <linus@mullvad.net>2017-08-24 15:16:07 +0200
committerLinus Färnstrand <linus@mullvad.net>2017-08-24 15:16:07 +0200
commita93f6010b581d308d289e3e2b024a0b3b7ae9e79 (patch)
tree7e1643e5caf99f64e12bd490030e847afce4128c
parent75b80b08a276f0d2bf45f322789c92d02220b50e (diff)
downloadmullvadvpn-a93f6010b581d308d289e3e2b024a0b3b7ae9e79.tar.xz
mullvadvpn-a93f6010b581d308d289e3e2b024a0b3b7ae9e79.zip
Fix documentation
-rw-r--r--mullvad-daemon/src/management_interface.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/mullvad-daemon/src/management_interface.rs b/mullvad-daemon/src/management_interface.rs
index 65778b6548..9401f4ad5e 100644
--- a/mullvad-daemon/src/management_interface.rs
+++ b/mullvad-daemon/src/management_interface.rs
@@ -233,7 +233,7 @@ impl<T: From<TunnelCommand> + 'static + Send> ManagementInterface<T> {
result.boxed()
}
- /// Sends a command to the daemon and maps a successful send into the future `item`.
+ /// Sends a command to the daemon and maps the error to an RPC error.
fn send_command_to_daemon(&self, command: TunnelCommand) -> BoxFuture<(), Error> {
future::result(self.tx.lock().unwrap().send(command))
.map_err(|_| Error::internal_error())