From ac2e4d49cff17b63ddbf2defedb19f352384ad11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johel=20Ernesto=20Guerrero=20Pe=C3=B1a?= Date: Sun, 16 Jul 2023 18:32:45 -0400 Subject: [PATCH] docs: add missing braces to initialize vector --- include/SFML/Graphics/RenderTexture.hpp | 2 +- include/SFML/Graphics/Texture.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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