[docs] Don't use &mut self for view()

This commit is contained in:
Bartłomiej Maryńczak 2023-08-16 20:21:57 +02:00 committed by GitHub
parent aadf6821c9
commit c9c5be7b01
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