explain position information numbers in syntax exception

This commit is contained in:
Simulant
2024-03-23 22:02:54 +01:00
parent f1c9d0787b
commit d69d5e284b
10 changed files with 90 additions and 90 deletions

View File

@@ -520,11 +520,11 @@ public class JSONTokener {
/**
* Make a printable string of this JSONTokener.
*
* @return " at {index} [character {character} line {line}]"
* @return " at index {index} [character number {character} in line {line}]"
*/
@Override
public String toString() {
return " at " + this.index + " [character " + this.character + " line " +
return " at index " + this.index + " [character number " + this.character + " in line " +
this.line + "]";
}