diff --git a/include/SFML/Graphics/Text.hpp b/include/SFML/Graphics/Text.hpp index 9a17b8e0a..3a0eaf7a8 100644 --- a/include/SFML/Graphics/Text.hpp +++ b/include/SFML/Graphics/Text.hpp @@ -77,7 +77,7 @@ public : /// \param characterSize Base size of characters, in pixels /// //////////////////////////////////////////////////////////// - explicit Text(const String& string, const Font& font, unsigned int characterSize = 30); + Text(const String& string, const Font& font, unsigned int characterSize = 30); //////////////////////////////////////////////////////////// /// \brief Set the text's string @@ -337,8 +337,7 @@ private : /// font.loadFromFile("arial.ttf"); /// /// // Create a text -/// sf::Text text("hello"); -/// text.setFont(font); +/// sf::Text text("hello", font); /// text.setCharacterSize(30); /// text.setStyle(sf::Text::Bold); /// text.setColor(sf::Color::Red);