1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2025-03-27 16:25:43 +02:00

Make code in expression evaluation exercise editable (#2601)

This commit is contained in:
Nicole L 2025-02-06 11:00:46 -08:00 committed by GitHub
parent 6a25d7be04
commit 06bdb40442
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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}}