Skip to content

Commit

Permalink
fix: documentation for BreakingMessage() method.
Browse files Browse the repository at this point in the history
  • Loading branch information
zbindenren committed Jan 4, 2021
1 parent c186f94 commit 9cd0522
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions parse.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,8 @@ type Footer struct {
type Footers []Footer

// BreakingMessage returns the breaking change message text. If the breaking change
// is indicated with `!` only, the description is returned. If a `BREAKING CHANGE`
// or `BREAKING_CHANGE` footer token is detected, the corresponding footer value
// is returned.
// is indicated with a `BREAKING CHANGE` or `BREAKING_CHANGE` footer token, then this
// value is returned. Otherwise the header description is returned.
//
// If no breaking change is detected an empty string is returned.
func (c Commit) BreakingMessage() string {
Expand Down

0 comments on commit 9cd0522

Please sign in to comment.