Skip to content

Commit 758b014

Browse files
authored
add missing return in operator <<
1 parent 714a131 commit 758b014

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

code/Geometry.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ double dot(PT p, PT q) { return p.x*q.x+p.y*q.y; }
2525
double dist2(PT p, PT q) { return dot(p-q,p-q); }
2626
double cross(PT p, PT q) { return p.x*q.y-p.y*q.x; }
2727
ostream &operator<<(ostream &os, const PT &p) {
28-
os << "(" << p.x << "," << p.y << ")";
28+
return os << "(" << p.x << "," << p.y << ")";
2929
}
3030

3131
// rotate a point CCW or CW around the origin

0 commit comments

Comments
 (0)