Skip to content

Commit

Permalink
docs: use .translate over deprecated .offset
Browse files Browse the repository at this point in the history
  • Loading branch information
tirithen committed Jun 1, 2024
1 parent ba6dec3 commit 4491702
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/operations/simplify.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
/// ```
Expand Down

0 comments on commit 4491702

Please sign in to comment.