Skip to content

Commit dde7694

Browse files
committed
Update doc comment
1 parent 762264e commit dde7694

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

packages/vm-derive/src/lib.rs

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,17 @@ macro_rules! maybe {
1010
}
1111
use maybe;
1212

13-
/// Submit the hash of the function to a global inventory
14-
///
15-
/// These hashes affect whether the Wasm cache is regenerated or not
13+
/// Hash the function
14+
///
15+
/// # Example
16+
///
17+
/// ```rust
18+
/// # use vm_derive::hash_function;
19+
/// #[hash_function(const_name = "HASH")]
20+
/// fn foo() {
21+
/// println!("Hello, world!");
22+
/// }
23+
/// ```
1624
#[proc_macro_attribute]
1725
pub fn hash_function(
1826
attr: proc_macro::TokenStream,

0 commit comments

Comments
 (0)