Merge "Fix infinite recursion when printing unrecognized linktype"

This commit is contained in:
Treehugger Robot
2021-02-23 04:24:14 +00:00
committed by Gerrit Code Review

View File

@@ -1038,7 +1038,7 @@ func (lt linkType) String() string {
case javaPlatform: case javaPlatform:
return "private API" return "private API"
default: default:
panic(fmt.Errorf("unrecognized linktype: %v", lt)) panic(fmt.Errorf("unrecognized linktype: %d", lt))
} }
} }