Skip to content

Commit 4007b24

Browse files
committed
docs(ic-asset-certification): improve clarity in readme.md
1 parent 358977c commit 4007b24

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/http-certification/assets/README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ fn post_upgrade() {
7676

7777
## Canister endpoints
7878

79-
There is only one canister endpoint in this example to serve assets, `http_request` query endpoint. The `serve_metrics` and `serve_asset` functions will be covered in a later section.
79+
There is only one canister endpoint in this example to serve assets, the `http_request` query endpoint. The `http_request` handler uses two auxiliary functions, `serve_metrics` and `serve_asset`, which are covered in a later section.
8080

8181
```rust
8282
#[query]
@@ -160,7 +160,7 @@ The `certify_all_assets` function performs the following steps:
160160
4. Certify the assets using the `certify_assets` function from the `ic-asset-certification` crate.
161161
5. Set the canister's certified data.
162162

163-
````rust
163+
```rust
164164
thread_local! {
165165
static HTTP_TREE: Rc<RefCell<HttpCertificationTree>> = Default::default();
166166

@@ -267,7 +267,7 @@ fn certify_all_assets() {
267267
set_certified_data(&asset_router.root_hash());
268268
});
269269
}
270-
````
270+
```
271271

272272
## Serving assets
273273

0 commit comments

Comments
 (0)