Skip to content

Commit d716629

Browse files
committed
readme code fixes
1 parent 27d1124 commit d716629

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

iOverlay/README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ The `overlay` function returns a `Vec<Shapes>`:
152152
## Custom Point Type Support
153153
`iOverlay` allows users to define custom point types, as long as they implement the `FloatPointCompatible` trait.
154154
```rust
155-
use i_float::float::compatible::FloatPointCompatible;
155+
use i_overlay::i_float::float::compatible::FloatPointCompatible;
156156
use i_overlay::core::fill_rule::FillRule;
157157
use i_overlay::core::overlay_rule::OverlayRule;
158158
use i_overlay::float::single::SingleFloatOverlay;
@@ -205,7 +205,6 @@ println!("result: {:?}", result);
205205

206206
```rust
207207
use i_overlay::core::fill_rule::FillRule;
208-
use i_overlay::float::single::SingleFloatOverlay;
209208
use i_overlay::float::slice::FloatSlice;
210209

211210
let polygon = [
@@ -234,7 +233,6 @@ println!("result: {:?}", result);
234233
```rust
235234
use i_overlay::core::fill_rule::FillRule;
236235
use i_overlay::float::clip::FloatClip;
237-
use i_overlay::float::single::SingleFloatOverlay;
238236
use i_overlay::string::clip::ClipRule;
239237

240238
let polygon = [
@@ -328,7 +326,7 @@ let shape = vec![
328326
];
329327

330328
let style = OutlineStyle::new(0.2).line_join(LineJoin::Round(0.1));
331-
let shapes = shape.outline(style);
329+
let shapes = shape.outline(&style);
332330

333331
println!("shapes: {:?}", &shapes);
334332
```

0 commit comments

Comments
 (0)