Skip to content

Commit cb0061f

Browse files
committed
fix: rename method using with prefix
1 parent 0ba41e3 commit cb0061f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/widget/settings/section.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ impl<'a, Message: 'static> Section<'a, Message> {
2929
/// use cosmic::widget::{settings, text};
3030
///
3131
/// settings::view_section("My section")
32-
/// .list_column(ListColumn::default().spacing(42))
32+
/// .with_list_column(ListColumn::default().spacing(42))
3333
/// .add(text("My item 1"))
3434
/// .add(text("My item 2"))
3535
/// ```
36-
pub fn list_column(mut self, list_column: ListColumn<'a, Message>) -> Self {
36+
pub fn with_list_column(mut self, list_column: ListColumn<'a, Message>) -> Self {
3737
self.children = list_column;
3838
self
3939
}

0 commit comments

Comments
 (0)