Skip to content

Commit

Permalink
Update BMPlayerProtocols.swift
Browse files Browse the repository at this point in the history
Typo
  • Loading branch information
sunnyyoung authored Jan 16, 2018
1 parent 57aeb30 commit 2810a2f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Source/BMPlayerProtocols.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ extension BMPlayerControlView {
}

extension BMPlayer {
static func formatSecondsToString(_ secounds: TimeInterval) -> String {
if secounds.isNaN {
static func formatSecondsToString(_ seconds: TimeInterval) -> String {
if seconds.isNaN {
return "00:00"
}
let Min = Int(secounds / 60)
let Sec = Int(secounds.truncatingRemainder(dividingBy: 60))
let Min = Int(seconds / 60)
let Sec = Int(seconds.truncatingRemainder(dividingBy: 60))
return String(format: "%02d:%02d", Min, Sec)
}
}

0 comments on commit 2810a2f

Please sign in to comment.