Skip to content

Commit

Permalink
Merge pull request ruby#437 from ydah/fix-rbs
Browse files Browse the repository at this point in the history
Fix some rbs
  • Loading branch information
ydah authored Jun 9, 2024
2 parents 85be5b9 + 0f2d99a commit 40781a9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions sig/lrama/grammar.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ module Lrama
def epilogue_first_lineno=: (Integer epilogue_first_lineno) -> Integer
def epilogue=: (String epilogue) -> String
def prepare: () -> void
def validate!: () -> (void | bot)
def validate!: () -> void
def find_rules_by_symbol!: (Grammar::Symbol sym) -> Array[Rule]
def find_rules_by_symbol: (Grammar::Symbol sym) -> Array[Rule]?

Expand All @@ -88,6 +88,6 @@ module Lrama
def fill_default_precedence: () -> void
def fill_symbols: () -> Array[Grammar::Symbol]
def fill_sym_to_rules: () -> Array[Rule]
def validate_rule_lhs_is_nterm!: () -> bot?
def validate_rule_lhs_is_nterm!: () -> void
end
end
4 changes: 2 additions & 2 deletions sig/lrama/options.rbs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module Lrama
class Options
class Options
attr_accessor skeleton: String
attr_accessor header: bool
attr_accessor header_file: String?
Expand All @@ -13,5 +13,5 @@ module Lrama
attr_accessor debug: bool

def initialize: () -> void
end
end
end

0 comments on commit 40781a9

Please sign in to comment.