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