From 43bcfb9a2f6d4d1d800ccd55a12e7aeacf1f5cd3 Mon Sep 17 00:00:00 2001 From: Glen Whitney Date: Sat, 24 Aug 2024 16:50:18 +0000 Subject: [PATCH] Update Examples --- Examples.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Examples.md b/Examples.md index d757416..eaf8d3d 100644 --- a/Examples.md +++ b/Examples.md @@ -506,9 +506,12 @@ impl List fn main let mut list = List::new() + //! These calls could be chained, but they could have + //! been chained in Rust, and it's not reasonable to + //! expect Husht to detect chaining opportunities. list = list.prepend(1) - .prepend(2) - .prepend(3) + list = list.prepend(2) + list = list.prepend(3) println! "linked list has length: {}", list.len() println! "{}", list.stringify()