Skip to content

Commit d0fe78c

Browse files
authored
doc: fix two typos (#4174)
1 parent 3ff2666 commit d0fe78c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

doc/comments.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public class CtCommentProcessor extends AbstractProcessor<CtComment> {
7777
@Override
7878
public boolean isToBeProcessed(CtComment candidate) {
7979
// only process Javadoc
80-
if (candidatate.getCommentType() == CtComment.CommentType.JAVADOC) {
80+
if (candidate.getCommentType() == CtComment.CommentType.JAVADOC) {
8181
return true;
8282
}
8383
return false;

doc/filter.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ allDescendants = ctElement.getDirectChildren();
3232

3333
A Filter defines a predicate of the form of a `matches` method that
3434
returns `true` if an element has to be selected in the filtering operation.
35-
A Filter is given as parameter to `CtElement#getElement(Filter)` ()or `CtQueryable#filterChildren(Filter)`) which implements a depth-first search algorithm. During AST traversal, the elements satisfying the matching predicate are selected by the filter.
35+
A Filter is given as parameter to `CtElement#getElement(Filter)` (or `CtQueryable#filterChildren(Filter)`) which implements a depth-first search algorithm. During AST traversal, the elements satisfying the matching predicate are selected by the filter.
3636

3737
Here are code examples about the usage of filters. The first example returns all AST nodes of type `CtAssignment`.
3838

0 commit comments

Comments
 (0)