Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ba9ea32f authored by Yi-Yo Chiang's avatar Yi-Yo Chiang
Browse files

Update comment text of SrcIsModuleWithTag()

The actual behavior of the method is slightly different from its text
right now. Update the text to describe the actual behavior.

Bug: 193228441
Test: m nothing (change is noop)
Change-Id: I755829af6aa1b3f95ac71f33d75751b94e71b54b
parent 257608f9
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -2829,9 +2829,10 @@ func SrcIsModule(s string) (module string) {
	return module
}

// SrcIsModule decodes module references in the format ":unqualified-name{.tag}" or
// "//namespace:name{.tag}" into the module name and an empty string for the tag, or empty strings
// if the input was not a module reference.
// SrcIsModuleWithTag decodes module references in the format ":unqualified-name{.tag}" or
// "//namespace:name{.tag}" into the module name and tag, ":unqualified-name" or "//namespace:name"
// into the module name and an empty string for the tag, or empty strings if the input was not a
// module reference.
func SrcIsModuleWithTag(s string) (module, tag string) {
	if len(s) > 1 {
		if s[0] == ':' {