Skip to content

Commit

Permalink
docs adjustment
Browse files Browse the repository at this point in the history
  • Loading branch information
categulario committed Apr 1, 2022
1 parent aec5a7e commit 04d56ff
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,10 @@
//! use geo_types::Point;
//!
//! let point: Wkt<f64> = "POINT(10 20)".parse().unwrap();
//! let g_point: geo_types::Point<f64> = (10., 20.).into();
//! // We can attempt to directly convert the Wkt without having to access its items field
//! let converted: Point<f64> = point.try_into().unwrap();
//!
//! let g_point: geo_types::Point<f64> = (10., 20.).into();
//!
//! assert_eq!(g_point, converted);
//! ```
//!
Expand Down

0 comments on commit 04d56ff

Please sign in to comment.