Skip to content

Commit

Permalink
Merge pull request #6 from jcdyer/doc-typo-interects
Browse files Browse the repository at this point in the history
Fix typo in header docs: s/interects/intersects/
  • Loading branch information
tidwall committed Nov 11, 2023
2 parents f205537 + de9a301 commit 4fcf1e5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tg.h
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ bool tg_rect_intersects_point(struct tg_rect a, struct tg_point b);
/// must upcast the ring to a tg_geom, like such:
///
/// ```
/// tg_geom_interects((struct tg_geom*)ring, geom);
/// tg_geom_intersects((struct tg_geom*)ring, geom);
/// ```
/// @{
struct tg_ring *tg_ring_new(const struct tg_point *points, int npoints);
Expand Down Expand Up @@ -280,7 +280,7 @@ double tg_ring_perimeter(const struct tg_ring *ring);
/// must upcast the line to a tg_geom, like such:
///
/// ```
/// tg_geom_interects((struct tg_geom*)line, geom);
/// tg_geom_intersects((struct tg_geom*)line, geom);
/// ```
/// @{
struct tg_line *tg_line_new(const struct tg_point *points, int npoints);
Expand Down Expand Up @@ -320,7 +320,7 @@ double tg_line_length(const struct tg_line *line);
/// must upcast the poly to a tg_geom, like such:
///
/// ```
/// tg_geom_interects((struct tg_geom*)poly, geom);
/// tg_geom_intersects((struct tg_geom*)poly, geom);
/// ```
/// @{
struct tg_poly *tg_poly_new(const struct tg_ring *exterior, const struct tg_ring *const holes[], int nholes);
Expand Down

0 comments on commit 4fcf1e5

Please sign in to comment.