Skip to content

Commit 1430e94

Browse files
authored
Merge pull request #233 from ruby/schneems/nov-15
Update docs and comments
2 parents bfb0f22 + 8c36b0c commit 1430e94

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

lib/syntax_suggest/capture_code_context.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ module SyntaxSuggest
1515
#
1616
# 1. Sanitize/format input source
1717
# 2. Search for invalid blocks
18-
# 3. Format invalid blocks into something meaninful
18+
# 3. Format invalid blocks into something meaningful
1919
#
2020
# This class handles the third part.
2121
#

lib/syntax_suggest/clean_document.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ module SyntaxSuggest
1010
#
1111
# 1. Sanitize/format input source
1212
# 2. Search for invalid blocks
13-
# 3. Format invalid blocks into something meaninful
13+
# 3. Format invalid blocks into something meaningful
1414
#
1515
# This class handles the first part.
1616
#

lib/syntax_suggest/code_frontier.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ module SyntaxSuggest
88
#
99
# 1. Sanitize/format input source
1010
# 2. Search for invalid blocks
11-
# 3. Format invalid blocks into something meaninful
11+
# 3. Format invalid blocks into something meaningful
1212
#
1313
# The Code frontier is a critical part of the second step
1414
#

lib/syntax_suggest/mini_stringio.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
1+
# frozen_string_literal: true
2+
13
module SyntaxSuggest
24
# Mini String IO [Private]
35
#
46
# Acts like a StringIO with reduced API, but without having to require that
57
# class.
8+
#
9+
# The original codebase emitted directly to $stderr, but now SyntaxError#detailed_message
10+
# needs a string output. To accomplish that we kept the original print infrastructure in place and
11+
# added this class to accumulate the print output into a string.
612
class MiniStringIO
713
EMPTY_ARG = Object.new
814

0 commit comments

Comments
 (0)