Browse Source
Make comment more readable about caddy ModuleID's Name() method. (#3080)
master
Success Go
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
modules.go
|
@ -101,7 +101,7 @@ func (id ModuleID) Namespace() string { |
|
|
return string(id)[:lastDot] |
|
|
return string(id)[:lastDot] |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// Name returns the Name (last element) of a module name.
|
|
|
// Name returns the Name (last element) of a module ID.
|
|
|
func (id ModuleID) Name() string { |
|
|
func (id ModuleID) Name() string { |
|
|
if id == "" { |
|
|
if id == "" { |
|
|
return "" |
|
|
return "" |
|
|