1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2025-01-29 16:03:11 +02:00

Add missing editable attribute to exercise (#1827)

I was reading the docs and I stumbled upon this.

I'm unsure about when exercises should be solved directly on the site
and when they should be copied and pasted into a playground. But since
the previous chapter's exercise is solvable in the site [(fibonacci
sequence)](0cb7f496b5/src/types-and-values/exercise.md (L15)),

I figured this one might be missing the attribute. Anyway amazing work
on the docs!
This commit is contained in:
titong0 2024-02-20 13:12:55 -03:00 committed by GitHub
parent 152354e9c9
commit 8344cbc273
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -25,7 +25,7 @@ For example, beginning with _n<sub>1</sub>_ = 3:
Write a function to calculate the length of the collatz sequence for a given
initial `n`.
```rust,should_panic
```rust,editable,should_panic
{{#include exercise.rs:collatz_length}}
todo!("Implement this")
}