File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -141,7 +141,7 @@ impl Array {
141
141
142
142
/// Constructs a new Array object from strided data
143
143
///
144
- /// This data can possiblly offseted using an additiona `offset` parameter.
144
+ /// The data pointed by the slice passed to this function can possibily be offseted using an additional `offset` parameter.
145
145
#[ allow( unused_mut) ]
146
146
pub fn new_strided < T : HasAfEnum > ( slice : & [ T ] , offset : i64 ,
147
147
dims : Dim4 , strides : Dim4 ) -> Result < Array , AfError > {
Original file line number Diff line number Diff line change @@ -817,12 +817,12 @@ pub fn color_space(input: &Array,
817
817
///
818
818
/// Array with labels indicating different regions
819
819
#[ allow( unused_mut) ]
820
- pub fn regions < T : HasAfEnum > ( input : & Array , conn : Connectivity ) -> Result < Array , AfError > {
820
+ pub fn regions < OutType : HasAfEnum > ( input : & Array , conn : Connectivity ) -> Result < Array , AfError > {
821
821
unsafe {
822
- let aftype = T :: get_af_dtype ( ) ;
822
+ let otype = OutType :: get_af_dtype ( ) ;
823
823
let mut temp: i64 = 0 ;
824
824
let err_val = af_regions ( & mut temp as MutAfArray , input. get ( ) as AfArray ,
825
- conn as uint8_t , aftype as uint8_t ) ;
825
+ conn as uint8_t , otype as uint8_t ) ;
826
826
match err_val {
827
827
0 => Ok ( Array :: from ( temp) ) ,
828
828
_ => Err ( AfError :: from ( err_val) ) ,
You can’t perform that action at this time.
0 commit comments