From bf77d874962d5a5c2fb5a82bd5f368fbc774f3c2 Mon Sep 17 00:00:00 2001 From: Corey Farwell Date: Wed, 24 Jul 2019 21:43:15 -0400 Subject: [PATCH] fix --- geo-types/src/rect.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/geo-types/src/rect.rs b/geo-types/src/rect.rs index da5d81812..4c64f9584 100644 --- a/geo-types/src/rect.rs +++ b/geo-types/src/rect.rs @@ -30,8 +30,8 @@ impl Rect { /// Coordinate { x: 10., y: 20. }, /// ); /// - /// assert_eq!(rect.min, Coordinate { x: 0., y: 0. }); - /// assert_eq!(rect.max, Coordinate { x: 10., y: 20. }); + /// assert_eq!(rect.min(), Coordinate { x: 0., y: 0. }); + /// assert_eq!(rect.max(), Coordinate { x: 10., y: 20. }); /// ``` pub fn new(min: C, max: C) -> Rect where