Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
hannobraun committed Nov 16, 2022
1 parent c77c40c commit 6f98a97
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions crates/fj-kernel/src/algorithms/transform/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,10 @@ where
Self::Partial(partial) => partial.transform(transform, objects)?,
};

// Transforming a `MaybePartial` *always* results in a partial object.
// This provides the most flexibility to the caller, who might want to
// use the transformed partial object for merging or whatever else,
// before building it themselves.
Ok(Self::Partial(transformed))
}
}

0 comments on commit 6f98a97

Please sign in to comment.