From 082d5e47f94963e6a931250751e1a6b14e0f49d7 Mon Sep 17 00:00:00 2001 From: Malik Olivier Boussejra Date: Sun, 15 Apr 2018 17:45:55 +0900 Subject: [PATCH] window_draw_list: Fix awkward wording in doc --- src/window_draw_list.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/window_draw_list.rs b/src/window_draw_list.rs index 4ca16ab..d7a6679 100644 --- a/src/window_draw_list.rs +++ b/src/window_draw_list.rs @@ -74,7 +74,7 @@ impl<'ui> WindowDrawList<'ui> { /// Split into *channels_count* drawing channels. /// At the end of the closure, the channels are merged. The objects /// are then drawn in the increasing order of their channel number, and not - /// in the all order they were called. + /// in the order they were called. /// /// # Example /// @@ -100,7 +100,9 @@ impl<'ui> WindowDrawList<'ui> { } } -/// Represent the drawing interface within a call to `channels_split`. +/// Represent the drawing interface within a call to [`channels_split`]. +/// +/// [`channels_split`]: WindowDrawList::channels_split pub struct ChannelsSplit<'ui> { draw_list: &'ui WindowDrawList<'ui>, channels_count: u32, @@ -111,7 +113,7 @@ impl<'ui> DrawAPI for ChannelsSplit<'ui> { } impl<'ui> ChannelsSplit<'ui> { - /// Change current channel + /// Change current channel. /// /// Panic if channel_index overflows the number of channels. pub fn channels_set_current(&self, channel_index: u32) {