From 5cab91cf739356db8e05da79c72c87854c58a879 Mon Sep 17 00:00:00 2001 From: Konstantin Stepanov Date: Thu, 23 Jul 2015 01:40:53 +0300 Subject: [PATCH] fix docs for `switch_user_group` --- src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 6f04c84..c138250 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -656,9 +656,9 @@ impl Drop for SwitchUserGuard { /// Safely switch user and group for the current scope. /// Requires root access. /// -/// ```rust +/// ```ignore /// { -/// let guard = switch_user_group(1001, 1001); +/// let _guard = switch_user_group(1001, 1001); /// // current and effective user and group ids are 1001 /// } /// // back to the old values