stdlib/strscan/0/string_scanner.rbs in rbs-3.5.1 vs stdlib/strscan/0/string_scanner.rbs in rbs-3.5.2

- old
+ new

@@ -182,13 +182,13 @@ # --> # Returns the subgroups in the most recent match (not including the full match). # If nothing was priorly matched, it returns nil. # # s = StringScanner.new("Fri Dec 12 1975 14:39") - # s.scan(/(\w+) (\w+) (\d+) /) # -> "Fri Dec 12 " - # s.captures # -> ["Fri", "Dec", "12"] - # s.scan(/(\w+) (\w+) (\d+) /) # -> nil - # s.captures # -> nil + # s.scan(/(\w+) (\w+) (\d+) (1980)?/) # -> "Fri Dec 12 " + # s.captures # -> ["Fri", "Dec", "12", nil] + # s.scan(/(\w+) (\w+) (\d+) (1980)?/) # -> nil + # s.captures # -> nil # def captures: () -> Array[String]? # <!-- # rdoc-file=ext/strscan/strscan.c