Skip to content

Commit c423646

Browse files
committed
Use Struct instead of Data
1 parent 3178cfc commit c423646

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rbs/ast/ruby/comment_block.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def self.build(buffer, comments)
9393
blocks
9494
end
9595

96-
AnnotationSyntaxError = _ = Data.define(:location, :error)
96+
AnnotationSyntaxError = _ = Struct.new(:location, :error, keyword_init: true)
9797

9898
def each_paragraph(variables, &block)
9999
if block

0 commit comments

Comments
 (0)