Skip to content

Commit 44eacea

Browse files
st0012Copilot
andcommitted
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent c20cde6 commit 44eacea

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/rdoc/parser/ruby.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -828,7 +828,8 @@ def add_module_or_class(module_name, start_line, end_line, is_class: false, supe
828828

829829
# Extracts RBS type signature lines (#: ...) from raw comment text.
830830
# Mutates the input text to remove the extracted lines.
831-
# Returns the type signature string, or nil if none found.
831+
# Returns an array of extracted type signature lines, or nil if none are
832+
# found. The array may contain multiple lines for overloaded signatures.
832833

833834
def extract_type_signature!(text, start_line)
834835
return nil unless text.include?('#:')

0 commit comments

Comments
 (0)