@@ -57,7 +57,7 @@ func (i PatchIdentity) String() string {
57
57
58
58
// ParsePatchIdentity parses a patch identity string. A valid string contains a
59
59
// 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
61
61
// properly formatted, only that it is non-empty. The name must not contain a
62
62
// left angle bracket, '<', and the email address must not contain a right
63
63
// angle bracket, '>'.
@@ -162,10 +162,9 @@ func ParsePatchDate(s string) PatchDate {
162
162
// used by git format-patch.
163
163
//
164
164
// 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.
169
168
func ParsePatchHeader (s string ) (* PatchHeader , error ) {
170
169
r := bufio .NewReader (strings .NewReader (s ))
171
170
0 commit comments