···57575858// ParsePatchIdentity parses a patch identity string. A valid string contains a
5959// non-empty name followed by an email address in angle brackets. Like Git,
6060-// ParsePatchIdentity does not require that the email addresses is valid or
6060+// ParsePatchIdentity does not require that the email address is valid or
6161// properly formatted, only that it is non-empty. The name must not contain a
6262// left angle bracket, '<', and the email address must not contain a right
6363// angle bracket, '>'.
···162162// used by git format-patch.
163163//
164164// ParsePatchHeader makes no assumptions about the format of the patch title or
165165-// message other than removing leading and trailing whitespace on each line and
166166-// condensing blank lines. In particular, it does not remove the extra content
167167-// that git format-patch adds to make emailed patches friendlier, like subject
168168-// prefixes or commit stats.
165165+// message other than trimming whitespace and condensing blank lines. In
166166+// particular, it does not remove the extra content that git format-patch adds
167167+// to make emailed patches friendlier, like subject prefixes or commit stats.
169168func ParsePatchHeader(s string) (*PatchHeader, error) {
170169 r := bufio.NewReader(strings.NewReader(s))
171170