Skip to content

Commit 6f1d8f8

Browse files
committed
Merge pull request flann-lib#241 from pmoulon/patch-1
Typo fix in heap.h
2 parents 4969acc + 144fb1c commit 6f1d8f8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/cpp/flann/util/cuda/heap.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ __device__ __host__ void swap( T& x, T& y )
4343
namespace heap
4444
{
4545

46-
//! moves an element down the heap until all children are smaller than the elemnent
46+
//! moves an element down the heap until all children are smaller than the element
4747
//! if c is a less-than comparator, it do this until all children are larger
4848
template <class GreaterThan, class RandomAccessIterator>
4949
__host__ __device__ void
@@ -94,7 +94,7 @@ is_heap( RandomAccessIterator begin, size_t length, GreaterThan c = GreaterThan(
9494
}
9595

9696

97-
//! moves an element down the heap until all children are smaller than the elemnent
97+
//! moves an element down the heap until all children are smaller than the element
9898
//! if c is a less-than comparator, it do this until all children are larger
9999
template <class GreaterThan, class RandomAccessIterator, class RandomAccessIterator2>
100100
__host__ __device__ void
@@ -136,4 +136,4 @@ make_heap( RandomAccessIterator key, RandomAccessIterator2 value, size_t length
136136
}
137137
}
138138

139-
#endif
139+
#endif

0 commit comments

Comments
 (0)