Skip to content

Commit

Permalink
Merge pull request #2034 from PolyMeilex/PolyMeilex-patch-1
Browse files Browse the repository at this point in the history
[docs] Don't use &mut self for view()
  • Loading branch information
hecrj authored Aug 16, 2023
2 parents aadf682 + c9c5be7 commit 2a3cb0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2a3cb0f

Please sign in to comment.