Skip to content

Commit

Permalink
Fix compile error in doc-test (import AnyValue)
Browse files Browse the repository at this point in the history
  • Loading branch information
tylanphear committed Aug 23, 2023
1 parent 358d1d1 commit 9e55d73
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/types/array_type.rs
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@ impl<'ctx> ArrayType<'ctx> {
/// # Example
/// ```no_run
/// use inkwell::context::Context;
/// use inkwell::values::AnyValue;
///
/// let context = Context::create();
/// let i8_type = context.i8_type();
Expand Down
1 change: 1 addition & 0 deletions src/types/float_type.rs
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,7 @@ impl<'ctx> FloatType<'ctx> {
/// # Example
/// ```no_run
/// use inkwell::context::Context;
/// use inkwell::values::AnyValue;
///
/// let context = Context::create();
/// let f32_type = context.f32_type();
Expand Down
1 change: 1 addition & 0 deletions src/types/int_type.rs
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,7 @@ impl<'ctx> IntType<'ctx> {
/// ```no_run
/// use inkwell::context::Context;
/// use inkwell::AddressSpace;
/// use inkwell::values::AnyValue;
///
/// let context = Context::create();
/// let i8_type = context.i8_type();
Expand Down
1 change: 1 addition & 0 deletions src/types/ptr_type.rs
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,7 @@ impl<'ctx> PointerType<'ctx> {
/// ```no_run
/// use inkwell::context::Context;
/// use inkwell::AddressSpace;
/// use inkwell::values::AnyValue;
///
/// let context = Context::create();
/// let f32_type = context.f32_type();
Expand Down
1 change: 1 addition & 0 deletions src/types/struct_type.rs
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,7 @@ impl<'ctx> StructType<'ctx> {
///
/// ```no_run
/// use inkwell::context::Context;
/// use inkwell::values::AnyValue;
///
/// let context = Context::create();
/// let f32_type = context.f32_type();
Expand Down

0 comments on commit 9e55d73

Please sign in to comment.