docs: add missing braces to initialize vector

This commit is contained in:
Johel Ernesto Guerrero Peña 2023-07-16 18:32:45 -04:00 committed by Chris Thrasher
parent 659eca2a62
commit ac2e4d49cf
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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