From 06bdb40442c7b08fc532fa72fe9c177e7bad4255 Mon Sep 17 00:00:00 2001 From: Nicole L <dlegare.1001@gmail.com> Date: Thu, 6 Feb 2025 11:00:46 -0800 Subject: [PATCH] Make code in expression evaluation exercise editable (#2601) --- src/pattern-matching/exercise.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pattern-matching/exercise.md b/src/pattern-matching/exercise.md index 42493f43..bbe30347 100644 --- a/src/pattern-matching/exercise.md +++ b/src/pattern-matching/exercise.md @@ -46,7 +46,7 @@ evaluate to `85`. We represent this as a much bigger tree: In code, we will represent the tree with two types: -```rust +```rust,editable {{#include exercise.rs:Operation}} {{#include exercise.rs:Expression}} @@ -68,7 +68,7 @@ get the tests to pass one-by-one. You can also skip a test temporarily with fn test_value() { .. } ``` -```rust +```rust,editable {{#include exercise.rs:Operation}} {{#include exercise.rs:Expression}}