From b4a0ee01449288e64ae7e5207d56c75da246067d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mael=20Rouxel-Labb=C3=A9?= Date: Fri, 15 Mar 2019 20:57:03 +0100 Subject: [PATCH] Fixed read-write mix up in Polygon_2 doc --- Polygon/include/CGAL/Polygon_2.h | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/Polygon/include/CGAL/Polygon_2.h b/Polygon/include/CGAL/Polygon_2.h index eb75384d26e..7daadb643b8 100644 --- a/Polygon/include/CGAL/Polygon_2.h +++ b/Polygon/include/CGAL/Polygon_2.h @@ -516,18 +516,17 @@ transform(const Transformation& t, const Polygon_2& p); /// followed by the output of the coordinates of the vertices. /// @{ -/// Inserts the polygon `p` into the stream `os`. \pre The insert -/// operator must be defined for `Point_2`. +/// Reads a polygon from stream `is` and assigns it to `p`. +/// \pre The extract operator must be defined for `Point_2`. /// \memberof Polygon_2 template std::istream &operator>>(std::istream &is, Polygon_2& p); -/// Reads a polygon from stream `is` and assigns it -/// to `p`. \pre The extract operator must be defined for `Point_2`. +/// Inserts the polygon `p` into the stream `os`. +/// \pre The insert operator must be defined for `Point_2`. /// \memberof Polygon_2 template -std::ostream -&operator<<(std::ostream &os, const Polygon_2& p); +std::ostream &operator<<(std::ostream &os, const Polygon_2& p); /// @} // IO