From 10bc0bd4ab9b886b77ba0cb4cdb2fa121a84c835 Mon Sep 17 00:00:00 2001 From: Kevin Newton Date: Thu, 7 Dec 2023 09:34:16 -0500 Subject: [ruby/prism] Remove warnings check from parse_success? method https://github.com/ruby/prism/commit/e30a241fb3 --- lib/prism.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/prism.rb b/lib/prism.rb index 6501ad7819..e44d163d02 100644 --- a/lib/prism.rb +++ b/lib/prism.rb @@ -68,7 +68,7 @@ module Prism # :call-seq: # Prism::parse_failure?(source, **options) -> bool # - # Returns true if the source is invalid Ruby code. + # Returns true if the source parses with errors. def self.parse_failure?(source, **options) !parse_success?(source, **options) end @@ -76,7 +76,7 @@ module Prism # :call-seq: # Prism::parse_file_failure?(filepath, **options) -> bool # - # Returns true if the file at filepath is invalid Ruby code. + # Returns true if the file at filepath parses with errors. def self.parse_file_failure?(filepath, **options) !parse_file_success?(filepath, **options) end -- cgit v1.2.3