Skip to content

Commit

Permalink
👍 change function name
Browse files Browse the repository at this point in the history
  • Loading branch information
jiro4989 committed Sep 6, 2021
1 parent aea0fb2 commit 0bab012
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func main() {
func clock(s *Slot) {
for !s.IsFinished() {
s.Switch()
drawSlot(s)
DrawSlot(s)
time.Sleep(time.Duration(s.IntervalTime()) * time.Millisecond)
}
}
Expand Down
2 changes: 1 addition & 1 deletion view.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
termbox "github.com/nsf/termbox-go"
)

func drawSlot(s *Slot) {
func DrawSlot(s *Slot) {
termbox.Clear(termbox.ColorDefault, termbox.ColorDefault)

idx := s.CurrentSlotIndex()
Expand Down

0 comments on commit 0bab012

Please sign in to comment.