Skip to content

Commit

Permalink
fix grammar in doc comments
Browse files Browse the repository at this point in the history
  • Loading branch information
hpa16 committed Sep 23, 2022
1 parent 0973ab0 commit b3619e9
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
22 changes: 11 additions & 11 deletions core/src/main/java/com/google/common/truth/IterableSubject.java
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ protected IterableSubject(FailureMetadata metadata, @Nullable Iterable<?> iterab
protected String actualCustomStringRepresentation() {
if (actual != null) {
// Check the value of iterable.toString() against the default Object.toString() implementation
// so we can avoid things like "com.google.common.graph.Traverser$GraphTraverser$1@5e316c74"
// so that we can avoid things like "com.google.common.graph.Traverser$GraphTraverser$1@5e316c74"
String objectToString =
actual.getClass().getName() + '@' + Integer.toHexString(System.identityHashCode(actual));
if (actual.toString().equals(objectToString)) {
Expand Down Expand Up @@ -243,7 +243,7 @@ public final void containsAnyIn(Object[] expected) {
}

/**
* Checks that the actual iterable contains at least all of the expected elements or fails. If an
* Checks that the actual iterable contains at least all the expected elements or fails. If an
* element appears more than once in the expected elements to this call then it must appear at
* least that number of times in the actual elements.
*
Expand All @@ -260,7 +260,7 @@ public final Ordered containsAtLeast(
}

/**
* Checks that the actual iterable contains at least all of the expected elements or fails. If an
* Checks that the actual iterable contains at least all the expected elements or fails. If an
* element appears more than once in the expected elements then it must appear at least that
* number of times in the actual elements.
*
Expand Down Expand Up @@ -319,7 +319,7 @@ public void inOrder() {
}

/**
* Checks that the actual iterable contains at least all of the expected elements or fails. If an
* Checks that the actual iterable contains at least all the expected elements or fails. If an
* element appears more than once in the expected elements then it must appear at least that
* number of times in the actual elements.
*
Expand Down Expand Up @@ -688,7 +688,7 @@ enum ElementFactGrouping {
}

/**
* Checks that a actual iterable contains none of the excluded objects or fails. (Duplicates are
* Checks that an actual iterable contains none of the excluded objects or fails. (Duplicates are
* irrelevant to this test, which fails if any of the actual elements equal any of the excluded.)
*/
public final void containsNoneOf(
Expand Down Expand Up @@ -986,7 +986,7 @@ public static class UsingCorrespondence<A, E> {
*
* <p>On assertions where it makes sense to do so, the elements are paired as follows: they are
* keyed by {@code keyFunction}, and if an unexpected element and a missing element have the
* same non-null key then the they are paired up. (Elements with null keys are not paired.) The
* same non-null key then they are paired up. (Elements with null keys are not paired.) The
* failure message will show paired elements together, and a diff will be shown if the {@link
* Correspondence#formatDiff} method returns non-null.
*
Expand Down Expand Up @@ -1028,7 +1028,7 @@ public UsingCorrespondence<A, E> displayingDiffsPairedBy(Function<? super E, ?>
* <p>On assertions where it makes sense to do so, the elements are paired as follows: the
* unexpected elements are keyed by {@code actualKeyFunction}, the missing elements are keyed by
* {@code expectedKeyFunction}, and if an unexpected element and a missing element have the same
* non-null key then the they are paired up. (Elements with null keys are not paired.) The
* non-null key then they are paired up. (Elements with null keys are not paired.) The
* failure message will show paired elements together, and a diff will be shown if the {@link
* Correspondence#formatDiff} method returns non-null.
*
Expand Down Expand Up @@ -1502,7 +1502,7 @@ private boolean failIfOneToOneMappingHasMissingOrExtra(
}

/**
* Checks that the subject contains elements that corresponds to all of the expected elements,
* Checks that the subject contains elements that correspond to all the expected elements,
* i.e. that there is a 1:1 mapping between any subset of the actual elements and the expected
* elements where each pair of elements correspond.
*
Expand All @@ -1518,7 +1518,7 @@ public final Ordered containsAtLeast(
}

/**
* Checks that the subject contains elements that corresponds to all of the expected elements,
* Checks that the subject contains elements that correspond to all the expected elements,
* i.e. that there is a 1:1 mapping between any subset of the actual elements and the expected
* elements where each pair of elements correspond.
*
Expand Down Expand Up @@ -1584,7 +1584,7 @@ public void inOrder() {
}

/**
* Checks that the subject contains elements that corresponds to all of the expected elements,
* Checks that the subject contains elements that correspond to all the expected elements,
* i.e. that there is a 1:1 mapping between any subset of the actual elements and the expected
* elements where each pair of elements correspond.
*
Expand Down Expand Up @@ -2046,7 +2046,7 @@ List<A> pairOne(
}
}

/** An description of a pairing between expected and actual values. N.B. This is mutable. */
/** A description of a pairing between expected and actual values. N.B. This is mutable. */
private final class Pairing {

/**
Expand Down
2 changes: 1 addition & 1 deletion core/src/main/java/com/google/common/truth/Platform.java
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ static boolean containsMatch(String actual, String regex) {
}

/**
* Returns an array containing all of the exceptions that were suppressed to deliver the given
* Returns an array containing all the exceptions that were suppressed to deliver the given
* exception. If suppressed exceptions are not supported (pre-Java 1.7), an empty array will be
* returned.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ static boolean containsMatch(String subject, String regex) {
}

/**
* Returns an array containing all of the exceptions that were suppressed to deliver the given
* Returns an array containing all the exceptions that were suppressed to deliver the given
* exception. Delegates to the getSuppressed() method on Throwable that is available in Java 1.7+
*/
static Throwable[] getSuppressed(Throwable throwable) {
Expand Down

0 comments on commit b3619e9

Please sign in to comment.