Skip to content

Commit

Permalink
fix documentation error.
Browse files Browse the repository at this point in the history
  • Loading branch information
zhb committed Mar 15, 2023
1 parent 26d3743 commit cb62db5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
# gtags
GPATH
GTAGS
GRTAGS
GRTAGS
10 changes: 5 additions & 5 deletions src/vector/ops/set.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ impl Geometry {
/// otherwise the result might be wrong.
///
/// # Returns
/// Some(Geometry) if both Geometries contain pointers
/// None if either geometry is missing the gdal pointer, or there is an error.
/// `Some(geometry)` if both Geometries contain pointers
/// `None` if either geometry is missing the GDAL pointer, or there is an error.
///
/// See: [`OGR_G_Intersection`](https://gdal.org/api/vector_c_api.html#_CPPv418OGR_G_Intersection12OGRGeometryH12OGRGeometryH)
pub fn intersection(&self, other: &Self) -> Option<Self> {
Expand All @@ -42,10 +42,10 @@ impl Geometry {
/// otherwise the result might be wrong.
///
/// # Returns
/// Some(Geometry) if both Geometries contain pointers
/// None if either geometry is missing the gdal pointer, or there is an error.
/// `Some(geometry)` if both Geometries contain pointers.
/// `None` if either geometry is missing the GDAL pointer, or there is an error.
///
/// See: [`OGR_G_Intersection`](https://gdal.org/api/vector_c_api.html#_OGRGeometryH OGR_G_Union(OGRGeometryH, OGRGeometryH))
/// See: [`OGR_G_Union`](https://gdal.org/api/vector_c_api.html#_CPPv419OGR_G_UnionCascaded12OGRGeometryH)
pub fn union(&self, other: &Self) -> Option<Self> {
if !self.has_gdal_ptr() {
return None;
Expand Down

0 comments on commit cb62db5

Please sign in to comment.