Skip to content

Commit

Permalink
Fix doc for Span.
Browse files Browse the repository at this point in the history
  • Loading branch information
trivialfis committed Aug 5, 2018
1 parent 1d7fafc commit 58e9e15
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/common/span.h
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ class SpanIterator {
std::ptrdiff_t index_ = 0;
};

/*
/*!
* The extent E of the span returned by subspan is determined as follows:
*
* - If Count is not std::dynamic_extent, Count;
Expand All @@ -180,7 +180,7 @@ constexpr std::ptrdiff_t calculate_extent(std::ptrdiff_t _extent,
_count : (_extent != dynamic_extent ? _extent - _offset : _extent);
}

/*
/*!
* If N is dynamic_extent, the extent of the returned span E is also
* dynamic_extent; otherwise it is std::ptrdiff_t(sizeof(T)) * N.
*/
Expand Down Expand Up @@ -246,7 +246,7 @@ XGBOOST_DEVICE bool lexicographical_compare(InputIt1 first1, InputIt1 last1,
} // namespace detail


/*
/*!
* \brief span class implementation, based on ISO++20 span<T>. The interface
* should be the same.
*
Expand Down Expand Up @@ -437,7 +437,7 @@ class Span {
return subspan(size() - _count, _count);
}

/*
/*!
* If Count is std::dynamic_extent, r.size() == this->size() - Offset;
* Otherwise r.size() == Count.
*/
Expand Down

0 comments on commit 58e9e15

Please sign in to comment.