From 1d595d83721fa8940eb541d79aa8e41878dd67cb Mon Sep 17 00:00:00 2001 From: Chris Krycho Date: Tue, 15 Oct 2024 06:42:07 -0600 Subject: [PATCH] Fix up `` usage in Ch. 18 Thanks to @LifeAdventurer () for flagging this up on the tracking issue! --- src/ch18-01-what-is-oo.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/ch18-01-what-is-oo.md b/src/ch18-01-what-is-oo.md index 8e81826b9e..3d977dadc2 100644 --- a/src/ch18-01-what-is-oo.md +++ b/src/ch18-01-what-is-oo.md @@ -44,7 +44,7 @@ on demand whenever anyone needs it. In other words, `AveragedCollection` will cache the calculated average for us. Listing 18-1 has the definition of the `AveragedCollection` struct: -+ ```rust,noplayground {{#rustdoc_include ../listings/ch18-oop/listing-18-01/src/lib.rs}} @@ -58,9 +58,7 @@ ensure that whenever a value is added or removed from the list, the average is also updated. We do this by implementing `add`, `remove`, and `average` methods on the struct, as shown in Listing 18-2: -- -Filename: src/lib.rs + ```rust,noplayground {{#rustdoc_include ../listings/ch18-oop/listing-18-02/src/lib.rs:here}}