Skip to content

Commit 214159a

Browse files
docs: fix CfgSet::iter() documentation order description (#9011)
1 parent 10a640b commit 214159a

File tree

1 file changed

+3
-1
lines changed
  • crates/cairo-lang-filesystem/src

1 file changed

+3
-1
lines changed

crates/cairo-lang-filesystem/src/cfg.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,9 @@ impl CfgSet {
107107
Self(self.0.union(&other.0).cloned().collect())
108108
}
109109

110-
/// An iterator visiting all elements in insertion order.
110+
/// An iterator visiting all elements in ascending sorted order.
111+
///
112+
/// Elements are returned in order according to the `Ord` implementation of `Cfg`.
111113
pub fn iter(&self) -> impl Iterator<Item = &Cfg> {
112114
self.0.iter()
113115
}

0 commit comments

Comments
 (0)