Skip to content

Commit

Permalink
Add missing editable attribute to exercise (#1827)
Browse files Browse the repository at this point in the history
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)](https://github.com/google/comprehensive-rust/blob/0cb7f496b542d76468fa950718f57f4037abc8fa/src/types-and-values/exercise.md?plain=1#L15),

I figured this one might be missing the attribute. Anyway amazing work
on the docs!
  • Loading branch information
titong0 authored Feb 20, 2024
1 parent 152354e commit 8344cbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/control-flow-basics/exercise.md
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
Expand Down

0 comments on commit 8344cbc

Please sign in to comment.