From 566e74ff255b74d4c3e5edd3cc5f38cd504becbc Mon Sep 17 00:00:00 2001 From: Andy Waite Date: Thu, 16 Sep 2021 22:07:17 -0400 Subject: [PATCH] Fix typo in README --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index dfea4ea..3933b76 100644 --- a/README.md +++ b/README.md @@ -55,7 +55,7 @@ test.rb:2:in `extract_value': undefined method `[]' for nil:NilClass (NoMethodEr *Note: This API is experimental, may change in future.* -You can use the `ErrorHighlight.spot` method to get the spnippet data. +You can use the `ErrorHighlight.spot` method to get the snippet data. Note that the argument must be a RubyVM::AbstractSyntaxTree::Node object that is created with `keep_script_lines: true` option (which is available since Ruby 3.1). ```ruby