Merge pull request #2034 from PolyMeilex/PolyMeilex-patch-1

[docs] Don't use &mut self for view()
This commit is contained in:
Héctor Ramón 2023-08-16 21:06:58 +02:00 committed by GitHub
commit 2a3cb0fa7a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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