diff --git a/runtime/Cpp/runtime/src/BufferedTokenStream.h b/runtime/Cpp/runtime/src/BufferedTokenStream.h index 9236e7037..c967c4501 100755 --- a/runtime/Cpp/runtime/src/BufferedTokenStream.h +++ b/runtime/Cpp/runtime/src/BufferedTokenStream.h @@ -68,7 +68,7 @@ namespace antlr4 { /// /// Collect all hidden tokens (any off-default channel) to the right of /// the current token up until we see a token on DEFAULT_TOKEN_CHANNEL - /// of EOF. + /// or EOF. /// virtual std::vector getHiddenTokensToRight(size_t tokenIndex); diff --git a/runtime/Java/src/org/antlr/v4/runtime/BufferedTokenStream.java b/runtime/Java/src/org/antlr/v4/runtime/BufferedTokenStream.java index 8ca392877..3745438bf 100644 --- a/runtime/Java/src/org/antlr/v4/runtime/BufferedTokenStream.java +++ b/runtime/Java/src/org/antlr/v4/runtime/BufferedTokenStream.java @@ -372,7 +372,7 @@ public class BufferedTokenStream implements TokenStream { /** Collect all hidden tokens (any off-default channel) to the right of * the current token up until we see a token on DEFAULT_TOKEN_CHANNEL - * of EOF. + * or EOF. */ public List getHiddenTokensToRight(int tokenIndex) { return getHiddenTokensToRight(tokenIndex, -1); diff --git a/runtime/Swift/Antlr4/org/antlr/v4/runtime/BufferedTokenStream.swift b/runtime/Swift/Antlr4/org/antlr/v4/runtime/BufferedTokenStream.swift index 1f0ed2c44..ff7ff6ddf 100644 --- a/runtime/Swift/Antlr4/org/antlr/v4/runtime/BufferedTokenStream.swift +++ b/runtime/Swift/Antlr4/org/antlr/v4/runtime/BufferedTokenStream.swift @@ -402,7 +402,7 @@ public class BufferedTokenStream: TokenStream { /** Collect all hidden tokens (any off-default channel) to the right of * the current token up until we see a token on DEFAULT_TOKEN_CHANNEL - * of EOF. + * or EOF. */ public func getHiddenTokensToRight(_ tokenIndex: Int) throws -> Array? { return try getHiddenTokensToRight(tokenIndex, -1)