@@ -8,18 +8,14 @@ use llvm_sys::prelude::LLVMValueRef;
8
8
use llvm_sys:: core:: { LLVMGetTypeKind , LLVMGetElementType , LLVMTypeOf , LLVMGetReturnType } ;
9
9
use llvm_sys:: LLVMTypeKind ;
10
10
11
- // imports used in documentation
12
- #[ allow( unused_imports) ]
13
- use crate :: builder:: Builder ;
14
- #[ allow( unused_imports) ]
15
- use std:: convert:: TryInto ;
16
-
17
- /// A value that can be called with the [`Builder::build_call`] instruction.
11
+ /// A value that can be called with the [`build_call`] instruction.
18
12
///
19
- /// In practice, the `F : Into<CallableValue<'ctx>>` bound of [`Builder:: build_call`] means it is
20
- /// possible to pass a [`FunctionValue`] to `build_call` directly. It will be implicitly converted
13
+ /// In practice, the `F : Into<CallableValue<'ctx>>` bound of [`build_call`] means it is
14
+ /// possible to pass a [`FunctionValue`] to [ `build_call`] directly. It will be implicitly converted
21
15
/// into a `CallableValue`.
22
16
///
17
+ /// [`build_call`]: crate::builder::Builder::build_call
18
+ ///
23
19
/// ```no_run
24
20
/// use inkwell::context::Context;
25
21
///
@@ -44,8 +40,7 @@ use std::convert::TryInto;
44
40
/// ```
45
41
///
46
42
/// A [`PointerValue`] cannot be implicitly converted to a `CallableValue` because the pointer may
47
- /// point to a non-function value. Instead we can use [`TryFrom`] and [`TryInto`] to handle this
48
- /// failure case explicitly.
43
+ /// point to a non-function value. Instead we can use [`TryFrom`] to handle this failure case explicitly.
49
44
///
50
45
/// ```no_run
51
46
/// use std::convert::TryFrom;
0 commit comments