@@ -57,7 +57,7 @@ func (i PatchIdentity) String() string {
5757
5858// 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,
60- // ParsePatchIdentity does not require that the email addresses is valid or
60+ // 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, '>'.
@@ -162,10 +162,9 @@ func ParsePatchDate(s string) PatchDate {
162162// used by git format-patch.
163163//
164164// ParsePatchHeader makes no assumptions about the format of the patch title or
165- // message other than removing leading and trailing whitespace on each line and
166- // condensing blank lines. In particular, it does not remove the extra content
167- // that git format-patch adds to make emailed patches friendlier, like subject
168- // prefixes or commit stats.
165+ // message other than trimming whitespace and condensing blank lines. In
166+ // particular, it does not remove the extra content that git format-patch adds
167+ // 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
0 commit comments