History

Fix Scala 2 docs having a “_root_” type

Nicolas Ettlin committed 4 years ago

Commit 17be27f1 parent 2584ecc1 file · +2 −2Browse files

Unified · Split

lib/docs/filters/scala/entries.rb+2−2
@@ -75,12 +75,12 @@ module Docs · 74 unmodified lines
75 # include the companion object.75 # include the companion object.
76 def package_name76 def package_name
77 name = package_drop_last(slug_parts)77 name = package_drop_last(slug_parts)
78 name.empty? ? '_root_' : name78 name.empty? ? 'scala' : name
79 end79 end
80 80
81 def parent_package81 def parent_package
82 parent = package_drop_last(package_name.split('.'))82 parent = package_drop_last(package_name.split('.'))
83 parent.empty? ? '_root_' : parent83 parent.empty? ? 'scala' : parent
84 end84 end
85 85
86 def package_drop_last(parts)86 def package_drop_last(parts)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t