Skip to content

Commit 82f9aef

Browse files
committed
Fix example
1 parent c51feae commit 82f9aef

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

guide/src/macros/function.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,13 +106,15 @@ the `...$args` syntax.
106106
# #![cfg_attr(windows, feature(abi_vectorcall))]
107107
# extern crate ext_php_rs;
108108
# use ext_php_rs::prelude::*;
109+
# use ext_php_rs::types::Zval;
109110
/// This can be called from PHP as `add(1, 2, 3, 4, 5)`
110111
#[php_function]
111112
pub fn add(number: u32, numbers:&[&Zval]) -> u32 {
112113
// numbers is a slice of 4 Zvals all of type long
113114
number
114115
}
115116
# fn main() {}
117+
```
116118

117119
## Returning `Result<T, E>`
118120

0 commit comments

Comments
 (0)