diff --git a/doc/mainpage.hpp b/doc/mainpage.hpp index dc1ece9c..a421827d 100644 --- a/doc/mainpage.hpp +++ b/doc/mainpage.hpp @@ -46,7 +46,7 @@ /// { /// // Process events /// sf::Event event; -/// while (window.GetEvent(event)) +/// while (window.PollEvent(event)) /// { /// // Close window : exit /// if (event.Type == sf::Event::Closed)