diff options
author | 2020-04-01 04:34:14 +0200 | |
---|---|---|
committer | 2020-04-02 03:44:14 +0200 | |
commit | 4c44517556976454c0598c876addb10b88515cda (patch) | |
tree | bf86a945d28f206ca932082daf5ef61cd783b27b /native | |
parent | f4f8f62f55bcaf5b92b7af96544f153f88bab287 (diff) | |
download | iced-4c44517556976454c0598c876addb10b88515cda.tar.gz iced-4c44517556976454c0598c876addb10b88515cda.tar.bz2 iced-4c44517556976454c0598c876addb10b88515cda.zip |
Fix minor documentation issues
Diffstat (limited to 'native')
-rw-r--r-- | native/src/widget/pane_grid.rs | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/native/src/widget/pane_grid.rs b/native/src/widget/pane_grid.rs index 2eca68d3..ccb46571 100644 --- a/native/src/widget/pane_grid.rs +++ b/native/src/widget/pane_grid.rs @@ -59,12 +59,13 @@ use crate::{ /// /// let (mut state, _) = pane_grid::State::new(PaneState::SomePane); /// -/// let pane_grid = PaneGrid::new(&mut state, |pane, state, focus| { -/// match state { -/// PaneState::SomePane => Text::new("This is some pane"), -/// PaneState::AnotherKindOfPane => Text::new("This is another kind of pane"), -/// }.into() -/// }) +/// let pane_grid = +/// PaneGrid::new(&mut state, |pane, state, focus| { +/// match state { +/// PaneState::SomePane => Text::new("This is some pane"), +/// PaneState::AnotherKindOfPane => Text::new("This is another kind of pane"), +/// }.into() +/// }) /// .on_drag(Message::PaneDragged) /// .on_resize(Message::PaneResized); /// ``` |