Skip to content

Commit

Permalink
fix misspelling of precede
Browse files Browse the repository at this point in the history
  • Loading branch information
vaskoz committed Apr 24, 2019
1 parent 20bdd94 commit 17842fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions day242/problem.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func (r *readOptimized) Query(start, end int) int {
panic("start and end must be between 0-23 inclusive")
}
if start > end {
panic("start must preceed or equal end")
panic("start must precede or equal end")
}
r.RLock()
var sum int
Expand Down Expand Up @@ -76,7 +76,7 @@ func (w *writeOptimized) Query(start, end int) int {
panic("start and end must be between 0-23 inclusive")
}
if start > end {
panic("start must preceed or equal end")
panic("start must precede or equal end")
}
w.RLock()
var sum int
Expand Down

0 comments on commit 17842fb

Please sign in to comment.