mirror of
https://github.com/uutils/rust-users.git
synced 2026-06-10 15:48:37 -07:00
fix docs for switch_user_group
This commit is contained in:
+2
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user