summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/prism.rb4
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