From d35aa58b2fac5ce0172c3a940a9b5f33af21bc56 Mon Sep 17 00:00:00 2001 From: Kevin Newton Date: Mon, 4 Dec 2023 12:15:13 -0500 Subject: [PATCH] [ruby/prism] Fix up docs for lex_compat https://github.com/ruby/prism/commit/9131e84060 --- lib/prism.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/prism.rb b/lib/prism.rb index b9e615df6ce953..6501ad781978f1 100644 --- a/lib/prism.rb +++ b/lib/prism.rb @@ -36,11 +36,11 @@ module Prism private_constant :LexRipper # :call-seq: - # Prism::lex_compat(source, **options) -> Array + # Prism::lex_compat(source, **options) -> ParseResult # - # Returns an array of tokens that closely resembles that of the Ripper lexer. - # The only difference is that since we don't keep track of lexer state in the - # same way, it's going to always return the NONE state. + # Returns a parse result whose value is an array of tokens that closely + # resembles the return value of Ripper::lex. The main difference is that the + # `:on_sp` token is not emitted. # # For supported options, see Prism::parse. def self.lex_compat(source, **options)