File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -187,6 +187,7 @@ module Kernel : BasicObject
187187 # rdoc-file=vm_backtrace.c
188188 # - caller_locations(start=1, length=nil) -> array or nil
189189 # - caller_locations(range) -> array or nil
190+ # - caller_locations -> array
190191 # -->
191192 # Returns the current execution stack---an array containing backtrace location
192193 # objects.
@@ -204,8 +205,9 @@ module Kernel : BasicObject
204205 # Optionally you can pass a range, which will return an array containing the
205206 # entries within the specified range.
206207 #
207- def self?.caller_locations : (?Integer start_or_range, ?Integer length) -> ::Array[Thread::Backtrace::Location]?
208- | (?::Range[Integer] start_or_range) -> ::Array[Thread::Backtrace::Location]?
208+ def self?.caller_locations : (Integer start_or_range, ?Integer length) -> ::Array[Thread::Backtrace::Location]?
209+ | (::Range[Integer] start_or_range) -> ::Array[Thread::Backtrace::Location]?
210+ | () -> ::Array[Thread::Backtrace::Location]
209211
210212 # <!--
211213 # rdoc-file=vm_eval.c
You can’t perform that action at this time.
0 commit comments