Skip to content

Commit b2c042e

Browse files
committed
Fixing typos
1 parent bb8f2da commit b2c042e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/array.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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> {

src/image/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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)),

0 commit comments

Comments
 (0)