Skip to content

Commit

Permalink
fix typo in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
tidwall committed Nov 11, 2023
1 parent dda0e82 commit 8b756de
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/API.md
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ Functions for working directly with the [tg_ring](#structtg__ring) type.
There are no direct spatial predicates for [tg_ring](#structtg__ring). If you want to perform operations like "intersects" or "covers" then you must upcast the ring to a [tg_geom](#structtg__geom), like such:

```c
tg_geom_interects((struct tg_geom*)ring, geom);
tg_geom_intersects((struct tg_geom*)ring, geom);
```
Expand Down Expand Up @@ -356,7 +356,7 @@ Functions for working directly with the [tg_line](#structtg__line) type.
There are no direct spatial predicates for [tg_line](#structtg__line). If you want to perform operations like "intersects" or "covers" then you must upcast the line to a [tg_geom](#structtg__geom), like such:
```c
tg_geom_interects((struct tg_geom*)line, geom);
tg_geom_intersects((struct tg_geom*)line, geom);
```


Expand Down Expand Up @@ -392,7 +392,7 @@ Functions for working directly with the [tg_poly](#structtg__poly) type.
There are no direct spatial predicates for [tg_poly](#structtg__poly). If you want to perform operations like "intersects" or "covers" then you must upcast the poly to a [tg_geom](#structtg__geom), like such:

```c
tg_geom_interects((struct tg_geom*)poly, geom);
tg_geom_intersects((struct tg_geom*)poly, geom);
```
Expand Down

0 comments on commit 8b756de

Please sign in to comment.