Skip to content

Commit f7c3883

Browse files
committed
exec_netns macro: update comment
Follow up to commit 047ef70 which removed the third argument. Signed-off-by: Paul Holzinger <[email protected]>
1 parent dbc9200 commit f7c3883

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/network/core_utils.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,8 +259,7 @@ pub fn join_netns<Fd: AsFd>(fd: Fd) -> NetavarkResult<()> {
259259

260260
/// safe way to join the namespace and join back to the host after the task is done
261261
/// This first arg should be the hostns fd, the second is the container ns fd.
262-
/// The third is the result variable name and the last the closure that should be
263-
/// executed in the ns.
262+
/// The third and last the closure that should be executed in the ns.
264263
#[macro_export]
265264
macro_rules! exec_netns {
266265
($host:expr, $netns:expr, $exec:expr) => {{

0 commit comments

Comments
 (0)