Skip to content

Commit 21eb53b

Browse files
authored
Merge pull request rust-lang#134 from seanyoung/const_int_from_string
Added missing return 'ctx lt to const_int_from_string
2 parents 7e0430b + 2743483 commit 21eb53b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/types/int_type.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ impl<'ctx> IntType<'ctx> {
117117
/// let i8_val = i8_type.const_int_from_string("ABCD", StringRadix::Binary);
118118
/// assert!(i8_val.is_none());
119119
/// ```
120-
pub fn const_int_from_string(&self, slice: &str, radix: StringRadix) -> Option<IntValue> {
120+
pub fn const_int_from_string(&self, slice: &str, radix: StringRadix) -> Option<IntValue<'ctx>> {
121121
if !radix.to_regex().is_match(slice) {
122122
return None
123123
}

0 commit comments

Comments
 (0)