From a60870daf63a5d1f81d39d285473fb48410f7db5 Mon Sep 17 00:00:00 2001 From: Benjamin De Roeck Date: Fri, 5 Jan 2024 04:21:40 +0100 Subject: [PATCH] docs: Demonstrate correct function in to_homogeneous example (#1346) --- src/geometry/transform.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/geometry/transform.rs b/src/geometry/transform.rs index 73dc8d8a..0bafc951 100755 --- a/src/geometry/transform.rs +++ b/src/geometry/transform.rs @@ -411,7 +411,7 @@ where /// 3.0, 4.0, 0.0, /// 0.0, 0.0, 1.0); /// let t = Transform2::from_matrix_unchecked(m); - /// assert_eq!(t.into_inner(), m); + /// assert_eq!(t.to_homogeneous(), m); /// ``` #[inline] #[must_use]