From c37412a46fae94b99fdd8e5802f9e2123e8c2772 Mon Sep 17 00:00:00 2001 From: BezBIS Date: Wed, 28 Aug 2024 10:57:09 +0100 Subject: [PATCH] Fix readme examples --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 3f015d9..2c2b533 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ let gridref_10k = gridref_100m.recalculate(Precision::_10Km); assert_eq!("SO84".to_string(), gridref_10k.to_string()); // Get the eastings / northings at the gridref's south west corner -assert_eq!(gridref.sw(), coord! {x: 389_200, y: 243_700 }.into()); +assert_eq!(gridref.sw(), coord! {x: 389_200.0, y: 243_700.0 }.into()); ``` ## Features @@ -30,11 +30,11 @@ format, as commonly used in biological surveys. use gridish::{OSGB, Precision}; use geo_types::coord; -// Parse grid reference from a 6 figure (100m) string. +// Parse grid reference from a DINTY (2km) string. let gridref_2k: OSGB = "SN24R".parse().unwrap(); // Get the eastings / northings at the gridref's south west corner -assert_eq!(gridref_2k.sw(), coord! {x: 226_000, y: 242_000 }.into()); +assert_eq!(gridref_2k.sw(), coord! {x: 226_000.0, y: 242_000.0 }.into()); ``` ## License