summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/sys/resource.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sys/resource.rs b/src/sys/resource.rs
index dd7f8c5c..f3bfb671 100644
--- a/src/sys/resource.rs
+++ b/src/sys/resource.rs
@@ -200,8 +200,8 @@ pub fn getrlimit(resource: Resource) -> Result<(Option<rlim_t>, Option<rlim_t>)>
/// ```
/// # use nix::sys::resource::{setrlimit, Resource};
///
-/// let soft_limit = Some(1024);
-/// let hard_limit = Some(1048576);
+/// let soft_limit = Some(512);
+/// let hard_limit = Some(1024);
/// setrlimit(Resource::RLIMIT_NOFILE, soft_limit, hard_limit).unwrap();
/// ```
///