Skip to content

Commit 652f7ee

Browse files
ThisAMJmlugg
authored andcommitted
refactor: typo
1 parent 416a97e commit 652f7ee

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/Features/Speedrun/SpeedrunTimer.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -789,15 +789,15 @@ std::string SpeedrunTimer::SimpleFormat(float raw) {
789789
return std::string(format);
790790
}
791791

792-
float SpeedrunTimer::UnFormat(const std::string &formated_time) {
792+
float SpeedrunTimer::UnFormat(const std::string &formatted_time) {
793793
int h, m;
794794
float s, total = 0;
795795

796-
if (sscanf(formated_time.c_str(), "%d:%d:%f", &h, &m, &s) >= 3) {
796+
if (sscanf(formatted_time.c_str(), "%d:%d:%f", &h, &m, &s) >= 3) {
797797
total = h * 3600.0f + m * 60.0f + s;
798-
} else if (sscanf(formated_time.c_str(), "%d:%f", &m, &s) >= 2) {
798+
} else if (sscanf(formatted_time.c_str(), "%d:%f", &m, &s) >= 2) {
799799
total = m * 60.0f + s;
800-
} else if (sscanf(formated_time.c_str(), "%f", &s) >= 1) {
800+
} else if (sscanf(formatted_time.c_str(), "%f", &s) >= 1) {
801801
total = s;
802802
}
803803

src/Features/Speedrun/SpeedrunTimer.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
namespace SpeedrunTimer {
1313
std::string Format(float raw);
1414
std::string SimpleFormat(float raw);
15-
float UnFormat(const std::string &formated_time);
15+
float UnFormat(const std::string &formatted_time);
1616

1717
void Init();
1818
void SetIpt(float ipt);

0 commit comments

Comments
 (0)