Skip to content

Commit

Permalink
[docs] Don't use &mut self for view()
Browse files Browse the repository at this point in the history
  • Loading branch information
PolyMeilex authored Aug 16, 2023
1 parent aadf682 commit c9c5be7
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 c9c5be7

Please sign in to comment.