Skip to content

Commit

Permalink
Fix doctests
Browse files Browse the repository at this point in the history
  • Loading branch information
syrusakbary committed Oct 20, 2021
1 parent c3d4550 commit daf6ce2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/values/callable_value.rs
Expand Up @@ -31,7 +31,7 @@ use llvm_sys::LLVMTypeKind;
///
/// builder.position_at_end(entry);
///
/// let ret_val = builder.build_call(fn_value, &[i32_arg], "call")
/// let ret_val = builder.build_call(fn_value, &[i32_arg.into()], "call")
/// .try_as_basic_value()
/// .left()
/// .unwrap();
Expand Down Expand Up @@ -66,7 +66,7 @@ use llvm_sys::LLVMTypeKind;
/// // explicitly handling the failure case (here with `unwrap`)
/// let callable_value = CallableValue::try_from(fn_pointer_value).unwrap();
///
/// let ret_val = builder.build_call(callable_value, &[i32_arg], "call")
/// let ret_val = builder.build_call(callable_value, &[i32_arg.into()], "call")
/// .try_as_basic_value()
/// .left()
/// .unwrap();
Expand Down

0 comments on commit daf6ce2

Please sign in to comment.