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 {
141141
142142 /// Constructs a new Array object from strided data
143143 ///
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.
145145 #[ allow( unused_mut) ]
146146 pub fn new_strided < T : HasAfEnum > ( slice : & [ T ] , offset : i64 ,
147147 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,
817817///
818818/// Array with labels indicating different regions
819819#[ 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 > {
821821 unsafe {
822- let aftype = T :: get_af_dtype ( ) ;
822+ let otype = OutType :: get_af_dtype ( ) ;
823823 let mut temp: i64 = 0 ;
824824 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 ) ;
826826 match err_val {
827827 0 => Ok ( Array :: from ( temp) ) ,
828828 _ => Err ( AfError :: from ( err_val) ) ,
You can’t perform that action at this time.
0 commit comments