Skip to content

Commit f2d687f

Browse files
recoverleenhojpatrick
authored andcommitted
Documentation: Typo example ��instanceOf -> any
Fixed typo example
1 parent e9c2c8b commit f2d687f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hamcrest/src/main/java/org/hamcrest/CoreMatchers.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ public static org.hamcrest.Matcher<java.lang.Object> equalToObject(java.lang.Obj
249249
* used when it is necessary to make generics conform, for example in the JMock clause
250250
* <code>with(any(Thing.class))</code></p>
251251
* For example:
252-
* <pre>assertThat(new Canoe(), instanceOf(Canoe.class));</pre>
252+
* <pre>assertThat(new Canoe(), any(Canoe.class));</pre>
253253
*/
254254
public static <T> org.hamcrest.Matcher<T> any(java.lang.Class<T> type) {
255255
return org.hamcrest.core.IsInstanceOf.any(type);

0 commit comments

Comments
 (0)