diff --git a/include/SFML/Graphics/RenderTexture.hpp b/include/SFML/Graphics/RenderTexture.hpp index f8073427..ab0f9323 100644 --- a/include/SFML/Graphics/RenderTexture.hpp +++ b/include/SFML/Graphics/RenderTexture.hpp @@ -259,7 +259,7 @@ private: /// /// // Create a new render-texture /// sf::RenderTexture texture; -/// if (!texture.create(500, 500)) +/// if (!texture.create({500, 500})) /// return -1; /// /// // The main loop diff --git a/include/SFML/Graphics/Texture.hpp b/include/SFML/Graphics/Texture.hpp index e47270b0..6dbad6c9 100644 --- a/include/SFML/Graphics/Texture.hpp +++ b/include/SFML/Graphics/Texture.hpp @@ -705,7 +705,7 @@ SFML_GRAPHICS_API void swap(Texture& left, Texture& right) noexcept; /// /// // Create an empty texture /// sf::Texture texture; -/// if (!texture.create(640, 480)) +/// if (!texture.create({640, 480})) /// return -1; /// /// // Create a sprite that will display the texture