Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Prev Previous commit
Next Next commit
Add more doc comments
  • Loading branch information
KiChjang committed Mar 3, 2023
commit c9c8fe3d54fce2e5ca42cbc0662de4b78bae53cf
3 changes: 2 additions & 1 deletion xcm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,8 @@ pub trait MatchXcm {
C: Fn(&Self::Inst) -> bool,
F: FnMut(&mut Self::Inst) -> Result<ControlFlow<()>, Self::Error>;

/// Iterate instructions forward until `cond` returns false.
/// Iterate instructions forward until `cond` returns false. When there are no more instructions
/// to be read, an error is returned.
fn skip_inst_while<C>(self, cond: C) -> Result<Self, Self::Error>
where
Self: Sized,
Expand Down