Skip to content

Commit cc7bd81

Browse files
csamakgoogle-java-format Team
authored andcommitted
Fix getToken(int k) javadoc to clarify that k is the Tok, not Token, index.
Now it's consistent with the comment on kToToken PiperOrigin-RevId: 365156881
1 parent 6da736d commit cc7bd81

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

core/src/main/java/com/google/googlejavaformat/Input.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ public interface Token {
121121
/**
122122
* Get the Token by index.
123123
*
124-
* @param k the token index
124+
* @param k the Tok index
125125
*/
126126
public abstract Token getToken(int k);
127127

core/src/main/java/com/google/googlejavaformat/java/JavaInput.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -604,7 +604,7 @@ public int getkN() {
604604
/**
605605
* Get the Token by index.
606606
*
607-
* @param k the token index
607+
* @param k the Tok index
608608
*/
609609
@Override
610610
public Token getToken(int k) {

0 commit comments

Comments
 (0)