Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Tamika Nomara committed Aug 16, 2021
1 parent 19a19bf commit e59df9d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ethcontract-mock/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -628,10 +628,11 @@ impl<P: Tokenize + Send + 'static, R: Tokenize + Send + 'static> Expectation<P,
///
/// An expectation can be in one sequence only.
///
/// Also, an expectation should be callable exactly once. Use [`once`]
/// before calling `in_sequence`.
/// Also, an expectation should have [`times`] limit set to an exact
/// number of calls, i.e., [`once`], two times, and so on.
///
/// [mockall documentation]: https://docs.rs/mockall/#sequences
/// [`times`]: Expectation::times
/// [`once`]: Expectation::once
pub fn in_sequence(self, sequence: &mut mockall::Sequence) -> Self {
self.transport.in_sequence::<P, R>(
Expand Down

0 comments on commit e59df9d

Please sign in to comment.