Skip to content

Commit

Permalink
[ruby/prism] Fix up docs for lex_compat
Browse files Browse the repository at this point in the history
  • Loading branch information
kddnewton authored and matzbot committed Dec 4, 2023
1 parent ea9f89e commit d35aa58
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/prism.rb
Expand Up @@ -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)
Expand Down

0 comments on commit d35aa58

Please sign in to comment.