Skip to content

Commit

Permalink
fix doc test
Browse files Browse the repository at this point in the history
  • Loading branch information
frewsxcv authored Feb 16, 2019
1 parent 9b519c4 commit 0c83a02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion geo-types/src/geometry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ impl<T: CoordinateType> Geometry<T> {
/// ```
/// use geo_types::*;
/// let g = Geometry::Point(Point::new(0., 0.));
/// let p2: Point<f32> = g.as_point().unwrap();
/// let p2: Point<f32> = g.into_point().unwrap();
/// assert_eq!(p2, Point::new(0., 0.,));
/// ```
pub fn into_point(self) -> Option<Point<T>> {
Expand Down

0 comments on commit 0c83a02

Please sign in to comment.