[docs] Don't use &mut self for view()
This commit is contained in:
parent
aadf6821c9
commit
c9c5be7b01
1 changed files with 1 additions and 1 deletions
|
|
@ -86,7 +86,7 @@
|
|||
//! use iced::widget::{button, column, text, Column};
|
||||
//!
|
||||
//! impl Counter {
|
||||
//! pub fn view(&mut self) -> Column<Message> {
|
||||
//! pub fn view(&self) -> Column<Message> {
|
||||
//! // We use a column: a simple vertical layout
|
||||
//! column![
|
||||
//! // The increment button. We tell it to produce an
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue