Skip to content

Commit 2c679b4

Browse files
committed
Docs fixes
1 parent 3272634 commit 2c679b4

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/lib.rs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,23 +58,29 @@ file accesses during a memoized call. As a result, we can reuse the result of a
5858
other files change.
5959
6060
```
61-
# /*
6261
use comemo::{memoize, track, Tracked};
6362
6463
/// Evaluate a `.calc` script.
6564
#[memoize]
6665
fn evaluate(script: &str, files: Tracked<Files>) -> i32 {
66+
# /*
6767
...
68+
# */
69+
# 0
6870
}
6971
72+
# struct Files;
73+
7074
#[track]
7175
impl Files {
7276
/// Read a file from storage.
7377
fn read(&self, path: &str) -> String {
78+
# /*
7479
...
80+
# */
81+
# String::new()
7582
}
7683
}
77-
# */
7884
```
7985
8086
For the full example see [`examples/calc.rs`][calc].

0 commit comments

Comments
 (0)