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); /// ```