Skip to content

Commit a3bb809

Browse files
Missed a doc test
1 parent c5714ea commit a3bb809

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/execution_engine.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ impl ExecutionEngine {
201201
///
202202
/// // fetch our JIT'd function and execute it
203203
/// unsafe {
204-
/// let test_fn = ee.get_function::<fn() -> f64>("test_fn").unwrap();
204+
/// let test_fn = ee.get_function::<unsafe extern "C" fn() -> f64>("test_fn").unwrap();
205205
/// let return_value = test_fn();
206206
/// assert_eq!(return_value, 64.0);
207207
/// }

0 commit comments

Comments
 (0)