Skip to content

Commit 1176ef6

Browse files
joehoyleXenira
andauthored
docs(readme): update example in readme
Refs: #539 Co-authored-by: Xenira <[email protected]>
1 parent 17ed914 commit 1176ef6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ pub fn hello_world(name: String) -> String {
3535
// Required to register the extension with PHP.
3636
#[php_module]
3737
pub fn module(module: ModuleBuilder) -> ModuleBuilder {
38-
module
38+
module.function(wrap_function!(hello_world))
3939
}
4040
```
4141

0 commit comments

Comments
 (0)