Skip to content

Commit d7ff3a4

Browse files
chore: Add a comment
1 parent 7bfd029 commit d7ff3a4

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

rust/operator-binary/src/framework/config_overrides.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ impl JsonConfigOverrides {
7979
Self::UserProvided(content) => content.clone(),
8080
Self::Sequence(sequence) => {
8181
let mut doc = base.clone();
82+
// `sequence` starts with the latest patch. Iterate in reverse order, to apply the
83+
// patches from the first to the last one.
8284
for patch in sequence.iter().rev() {
8385
doc = patch.apply(&doc);
8486
}

0 commit comments

Comments
 (0)