]> git.proxmox.com Git - rustc.git/blobdiff - library/core/src/option.rs
New upstream version 1.65.0+dfsg1
[rustc.git] / library / core / src / option.rs
index bca73cb770fbb3bab29968d931af0918124d79ef..934175863630f760d4c6c2c29905d5db8cce59f7 100644 (file)
@@ -1189,6 +1189,12 @@ impl<T> Option<T> {
 
     /// Returns [`None`] if the option is [`None`], otherwise returns `optb`.
     ///
+    /// Arguments passed to `and` are eagerly evaluated; if you are passing the
+    /// result of a function call, it is recommended to use [`and_then`], which is
+    /// lazily evaluated.
+    ///
+    /// [`and_then`]: Option::and_then
+    ///
     /// # Examples
     ///
     /// ```