Skip to content

Commit d903f00

Browse files
committed
Fix type mismatch
1 parent d4de866 commit d903f00

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/function_svg.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ fn main() {
88
let f2 = plotlib::function::Function::new(|x| x.powi(2), 0., 10.)
99
.style(plotlib::function::Style::new().colour("darkolivegreen"));
1010
let f3 = plotlib::function::Function::new(|x| x.sqrt() * 20., 0., 10.)
11-
.style(plotlib::function::Style::new().colour("brown").width(1));
11+
.style(plotlib::function::Style::new().colour("brown").width(1.));
1212
let v = plotlib::view::View::new().add(&f1).add(&f2).add(&f3);
1313
plotlib::page::Page::single(&v).save("function.svg");
1414
}

0 commit comments

Comments
 (0)