Skip to content

Commit 37e645b

Browse files
committed
Wrong JavaDoc descriptions in Matchers class (issue hamcrest#176)
1 parent 8f9372a commit 37e645b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hamcrest-library/src/main/java/org/hamcrest/Matchers.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -619,7 +619,7 @@ public static <T> org.hamcrest.Matcher<T[]> hasItemInArray(T element) {
619619
* logically equal to the corresponding item in the specified items. For a positive match,
620620
* the examined array must be of the same length as the number of specified items.
621621
* For example:
622-
* <pre>assertThat(new String[]{"foo", "bar"}, contains("foo", "bar"))</pre>
622+
* <pre>assertThat(new String[]{"foo", "bar"}, arrayContaining("foo", "bar"))</pre>
623623
*
624624
* @param items
625625
* the items that must equal the items within an examined array
@@ -720,7 +720,7 @@ public static <E> org.hamcrest.Matcher<E[]> arrayContainingInAnyOrder(java.util.
720720
* <p>
721721
* For example:
722722
* </p>
723-
* <pre>assertThat(new String[]{"foo", "bar"}, containsInAnyOrder("bar", "foo"))</pre>
723+
* <pre>assertThat(new String[]{"foo", "bar"}, arrayContainingInAnyOrder("bar", "foo"))</pre>
724724
*
725725
* @param items
726726
* the items that must equal the entries of an examined array, in any order

0 commit comments

Comments
 (0)