Skip to content

Commit 53a6ada

Browse files
committed
Fix quickbook template redefinition in algorithm examples
Correct example comment (copy/paste error). Fixes issue introduced in #667
1 parent b43a999 commit 53a6ada

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

doc/src/examples/algorithms/touches_one_geometry.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
// Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
88
// http://www.boost.org/LICENSE_1_0.txt)
99

10-
//[touches
10+
//[touches_one_geometry
1111
//` Checks if a geometry has at least one touching point (self-tangency)
1212

1313
#include <iostream>
@@ -45,7 +45,7 @@ int main()
4545
//]
4646

4747

48-
//[touches_output
48+
//[touches_one_geometry_output
4949
/*`
5050
Output:
5151
[pre

doc/src/examples/algorithms/touches_two_geometries.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
// Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
88
// http://www.boost.org/LICENSE_1_0.txt)
99

10-
//[touches
10+
//[touches_two_geometries
1111
//` Checks if two geometries have at least one touching point (tangent - non overlapping)
1212

1313
#include <iostream>
@@ -20,7 +20,7 @@ namespace bg = boost::geometry; /*< Convenient namespace alias >*/
2020

2121
int main()
2222
{
23-
// Checks if the two geometries overlaps or not.
23+
// Checks if the two geometries touch
2424
bg::model::polygon<bg::model::d2::point_xy<double> > poly1;
2525
bg::read_wkt("POLYGON((0 0,0 4,4 4,4 0,0 0))", poly1);
2626
bg::model::polygon<bg::model::d2::point_xy<double> > poly2;
@@ -47,7 +47,7 @@ int main()
4747
//]
4848

4949

50-
//[touches_output
50+
//[touches_two_geometries_output
5151
/*`
5252
Output:
5353
[pre

0 commit comments

Comments
 (0)