diff options
author | Kevin Newton <[email protected]> | 2023-12-07 09:34:16 -0500 |
---|---|---|
committer | git <[email protected]> | 2023-12-07 14:39:11 +0000 |
commit | 10bc0bd4ab9b886b77ba0cb4cdb2fa121a84c835 (patch) | |
tree | 5e9351d397204069e1d0c833f9a390db9defd392 /lib | |
parent | 8e86a4347e8943305d2667865154fba046eb862d (diff) |
[ruby/prism] Remove warnings check from parse_success? method
https://github.com/ruby/prism/commit/e30a241fb3
Diffstat (limited to 'lib')
-rw-r--r-- | lib/prism.rb | 4 |
1 files changed, 2 insertions, 2 deletions
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 |