Skip to content

Commit 609a79f

Browse files
committed
doc: fix a broken example in README.md
1 parent f97c427 commit 609a79f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ Constance is a proof-of-concept of a static RTOS that utilizes Rust's compile-ti
2727
## Example
2828

2929
```rust
30+
#![feature(const_loop)]
31+
#![feature(const_fn)]
32+
#![feature(const_if_match)]
33+
#![feature(const_mut_refs)]
3034
use constance::kernel::Task;
3135

3236
// Use the simulator port
@@ -39,7 +43,7 @@ struct Objects {
3943
const COTTAGE: Objects = constance::build!(System, configure_app);
4044

4145
constance::configure! {
42-
fn configure_app(_: &mut CfgBuilder<System>) -> Objects {
46+
const fn configure_app(_: &mut CfgBuilder<System>) -> Objects {
4347
Objects {
4448
task: new! { Task<_>,
4549
start = task_body, priority = 2, active = true },

0 commit comments

Comments
 (0)