Skip to content

Commit daf6ce2

Browse files
committed
Fix doctests
1 parent c3d4550 commit daf6ce2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/values/callable_value.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ use llvm_sys::LLVMTypeKind;
3131
///
3232
/// builder.position_at_end(entry);
3333
///
34-
/// let ret_val = builder.build_call(fn_value, &[i32_arg], "call")
34+
/// let ret_val = builder.build_call(fn_value, &[i32_arg.into()], "call")
3535
/// .try_as_basic_value()
3636
/// .left()
3737
/// .unwrap();
@@ -66,7 +66,7 @@ use llvm_sys::LLVMTypeKind;
6666
/// // explicitly handling the failure case (here with `unwrap`)
6767
/// let callable_value = CallableValue::try_from(fn_pointer_value).unwrap();
6868
///
69-
/// let ret_val = builder.build_call(callable_value, &[i32_arg], "call")
69+
/// let ret_val = builder.build_call(callable_value, &[i32_arg.into()], "call")
7070
/// .try_as_basic_value()
7171
/// .left()
7272
/// .unwrap();

0 commit comments

Comments
 (0)