Skip to content

Commit

Permalink
Fix src/macros doc-tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dhardy committed Dec 9, 2021
1 parent fa4ea52 commit fe7db8f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,9 @@
//! #[autoimpl(Deref, DerefMut on 0)]
//! #[autoimpl(class_traits where W: trait on 0)]
//! #[derive(Clone, Debug, Default)]
//! #[widget(derive = self.0)]
//! #[widget{
//! derive = self.0;
//! }]
//! #[handler(msg = <W as Handler>::Msg)]
//! pub struct ScrollBarRegion<W: Widget>(ScrollBars<ScrollRegion<W>>);
//! }
Expand All @@ -297,7 +299,7 @@
//! use kas::event::{Handler, Manager, Response, VoidMsg};
//! use kas::macros::widget;
//! use kas::widgets::StrLabel;
//! use kas::{CoreData, LayoutData, Widget};
//! use kas::{CoreData, Widget};
//!
//! #[derive(Debug)]
//! enum ChildMessage { A }
Expand Down

0 comments on commit fe7db8f

Please sign in to comment.