Skip to content

Commit e61c941

Browse files
Fixes type name typo in error message. (#704)
1 parent 74aaf6f commit e61c941

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/values/basic_value_use.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,15 +80,15 @@ impl<'ctx> Operand<'ctx> {
8080
#[must_use]
8181
#[track_caller]
8282
pub fn unwrap_value(self) -> BasicValueEnum<'ctx> {
83-
self.expect_value("Called unwrap_value() on UsedValue::Block.")
83+
self.expect_value("Called unwrap_value() on Operand::Block.")
8484
}
8585

8686
/// Unwrap [BasicBlock]. Will panic if it is not.
8787
#[inline]
8888
#[must_use]
8989
#[track_caller]
9090
pub fn unwrap_block(self) -> BasicBlock<'ctx> {
91-
self.expect_block("Called unwrap_block() on UsedValue::Value.")
91+
self.expect_block("Called unwrap_block() on Operand::Value.")
9292
}
9393
}
9494

0 commit comments

Comments
 (0)