]> git.proxmox.com Git - rustc.git/blobdiff - vendor/num_cpus/src/lib.rs
New upstream version 1.60.0+dfsg1
[rustc.git] / vendor / num_cpus / src / lib.rs
index 6c8280fe6a8da16f5b558f43ccc0df2ca013e2ad..20474af4b3da7c152c5787a38727e645d78f592a 100644 (file)
@@ -28,7 +28,6 @@
 //! [`rayon::ThreadPool`]: https://docs.rs/rayon/1.*/rayon/struct.ThreadPool.html
 #![cfg_attr(test, deny(warnings))]
 #![deny(missing_docs)]
-#![doc(html_root_url = "https://docs.rs/num_cpus/1.13.0")]
 #![allow(non_snake_case)]
 
 #[cfg(not(windows))]
@@ -47,6 +46,8 @@ use linux::{get_num_cpus, get_num_physical_cpus};
 /// This function will get the number of logical cores. Sometimes this is different from the number
 /// of physical cores (See [Simultaneous multithreading on Wikipedia][smt]).
 ///
+/// This will always return at least `1`.
+///
 /// # Examples
 ///
 /// ```
@@ -75,6 +76,8 @@ pub fn get() -> usize {
 
 /// Returns the number of physical cores of the current system.
 ///
+/// This will always return at least `1`.
+///
 /// # Note
 ///
 /// Physical count is supported only on Linux, mac OS and Windows platforms.