You've already forked comprehensive-rust
mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-06-25 02:06:46 +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:
@ -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
|
Write a function to calculate the length of the collatz sequence for a given
|
||||||
initial `n`.
|
initial `n`.
|
||||||
|
|
||||||
```rust,should_panic
|
```rust,editable,should_panic
|
||||||
{{#include exercise.rs:collatz_length}}
|
{{#include exercise.rs:collatz_length}}
|
||||||
todo!("Implement this")
|
todo!("Implement this")
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user