mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-30 06:58:12 +08:00
Fix PathStyle::clear_fill() doctest in style.rs (#1791)
This commit is contained in:
@@ -698,11 +698,11 @@ impl PathStyle {
|
|||||||
/// # use graphene_core::raster::color::Color;
|
/// # use graphene_core::raster::color::Color;
|
||||||
/// let mut style = PathStyle::new(None, Fill::Solid(Color::RED));
|
/// let mut style = PathStyle::new(None, Fill::Solid(Color::RED));
|
||||||
///
|
///
|
||||||
/// assert!(style.fill().is_some());
|
/// assert_ne!(*style.fill(), Fill::None);
|
||||||
///
|
///
|
||||||
/// style.clear_fill();
|
/// style.clear_fill();
|
||||||
///
|
///
|
||||||
/// assert!(!style.fill().is_some());
|
/// assert_eq!(*style.fill(), Fill::None);
|
||||||
/// ```
|
/// ```
|
||||||
pub fn clear_fill(&mut self) {
|
pub fn clear_fill(&mut self) {
|
||||||
self.fill = Fill::None;
|
self.fill = Fill::None;
|
||||||
|
|||||||
Reference in New Issue
Block a user