Make comment more readable about caddy ModuleID's Name() method. (#3080)

This commit is contained in:
Success Go 2020-02-26 00:11:29 +08:00 committed by GitHub
parent 623a1c588e
commit 45b171ff3a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -101,7 +101,7 @@ func (id ModuleID) Namespace() string {
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 {
if id == "" {
return ""