Skip to content

Commit

Permalink
fixed a compilation issue with MatcherImplicits in the guide
Browse files Browse the repository at this point in the history
  • Loading branch information
etorreborre committed Sep 9, 2016
1 parent d1e6181 commit 2fba9bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions guide/src/test/scala/org/specs2/guide/Matchers.scala
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,8 @@ t1 must beMatching(t2)

The easiest way to create a new matcher is to create it from a function returning a tuple with a boolean and one or more messages: ${snippet{

// import the necessary implicit conversions
import org.specs2.matcher.MatchersImplicits._
// import the necessary implicit conversions if you are outside of a Specification
// import org.specs2.matcher.MatchersImplicits._

// annotate the return type so that implicit conversions can transform your function into a Matcher object
// here just return a boolean and a failure message
Expand Down

0 comments on commit 2fba9bf

Please sign in to comment.