diff --git a/doc/matcher.md b/doc/matcher.md index 9fd691bb09e..878e873a373 100644 --- a/doc/matcher.md +++ b/doc/matcher.md @@ -20,7 +20,7 @@ if (c.size() > 10) throw new IndexOutOfBoundsException(); --- //foo() returns a collection -if (foo() > 10) +if (foo().size() > 10) throw new IndexOutOfBoundsException(); ``` @@ -42,7 +42,6 @@ public class CheckBoundMatcher { public void matcher1() { if (_col_.S().size() > 10) throw new IndexOutOfBoundsException(); - } } }