Skip to content

Commit

Permalink
Fixed copy-paste error in Timer documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
texus committed Jul 15, 2023
1 parent deafffe commit 3cf39bd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions include/TGUI/Timer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ TGUI_MODULE_EXPORT namespace tgui


/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// @brief Sets the time that the mouse has to stand still before the tooltip becomes visible
/// @brief Creates a new timer
///
/// @param callback Function without parameters, to be called at every interval when the timer is enabled
/// @param interval How often the callback should be called
Expand All @@ -72,7 +72,7 @@ TGUI_MODULE_EXPORT namespace tgui


/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// @brief Sets the time that the mouse has to stand still before the tooltip becomes visible
/// @brief Creates a new timer
///
/// @param callback Function that takes the timer as parameter, to be called at every interval when the timer is enabled
/// @param interval How often the callback should be called
Expand Down
2 changes: 1 addition & 1 deletion tests/Timer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ TEST_CASE("[Timer]")
timer->setEnabled(false);
}

SECTION("Interval")
SECTION("Callback")
{
unsigned int otherCount = 0;
const auto otherCallback = [&otherCount]{ ++otherCount; };
Expand Down

0 comments on commit 3cf39bd

Please sign in to comment.