doc: fix hint about Copy restraint

This commit is contained in:
2025-06-20 16:55:22 +02:00
parent a2422f776c
commit 0eaae32c9b
+2 -1
View File
@@ -13,7 +13,8 @@
//! of the accumulator and returned to the caller. //! of the accumulator and returned to the caller.
//! //!
//! Since the accumulated value needs to be both stored as the accumulator *and* returned to the //! Since the accumulated value needs to be both stored as the accumulator *and* returned to the
//! caller, the accumulator type must implement [`Clone`]. //! caller, the accumulator type must implement [`Copy`]. If you want to operate on non-copyable
//! types, you should use [`Iterator::scan`] instead.
//! //!
//! The returned iterator is **not** fused and it is not specified what happens when the base //! The returned iterator is **not** fused and it is not specified what happens when the base
//! iterator returns [`None`]. //! iterator returns [`None`].