From db47709e879c245294c03659307b161e4b7fadc0 Mon Sep 17 00:00:00 2001 From: Nicole L Date: Wed, 21 May 2025 17:44:43 -0700 Subject: [PATCH] Remove unnecessary deref operation in refcell.md (#2754) This is another place where we were explicitly doing a deref in a situation where it's not necessary, so I think removing it makes the code a bit more idiomatic and readable. --- src/borrowing/interior-mutability/refcell.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/borrowing/interior-mutability/refcell.md b/src/borrowing/interior-mutability/refcell.md index d147015c..f735dea3 100644 --- a/src/borrowing/interior-mutability/refcell.md +++ b/src/borrowing/interior-mutability/refcell.md @@ -23,7 +23,7 @@ fn main() { // This triggers an error at runtime. // let other = cell.borrow(); - // println!("{}", *other); + // println!("{}", other); } println!("{cell:?}");