Fix findIntersection documentation

This commit is contained in:
Chris Thrasher 2022-02-03 17:22:45 -07:00 committed by Lukas Dürrenberger
parent 8f1955af17
commit 0c8c35fa0c

View File

@ -220,9 +220,9 @@ using FloatRect = Rect<float>;
/// bool b2 = r2.contains(3, 1); // false
///
/// // Test the intersection between r1 and r2
/// sf::IntRect result;
/// bool b3 = r1.findIntersection(r2, result); // true
/// // result == (4, 2, 16, 3)
/// std::optional<sf::IntRect> result = r1.findIntersection(r2);
/// // result.has_value() == true
/// // result.value() == (4, 2, 16, 3)
/// \endcode
///
////////////////////////////////////////////////////////////