From 4491702293a296db03ede6295758f472caeadf9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20S=C3=B6derstr=C3=B6m?= Date: Sat, 1 Jun 2024 16:06:05 +0200 Subject: [PATCH] docs: use .translate over deprecated .offset --- src/operations/simplify.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/operations/simplify.rs b/src/operations/simplify.rs index ee15d47..8617db3 100644 --- a/src/operations/simplify.rs +++ b/src/operations/simplify.rs @@ -21,7 +21,7 @@ use crate::{malloc, Paths, PointScaler}; /// use clipper2::*; /// /// let path: Path = vec![(1.0, 2.0), (1.0, 2.5), (1.2, 4.0), (1.8, 6.0)].into(); -/// let path_simplified = simplify(path.offset(3.0, 0.0), 0.5, false); +/// let path_simplified = simplify(path.translate(3.0, 0.0), 0.5, false); /// /// dbg!(path, path_simplified); /// ```