docs: add missing braces to initialize vector
This commit is contained in:
parent
659eca2a62
commit
ac2e4d49cf
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user