Skip to content

Commit

Permalink
vec: reduce_and/or(): document element conversion to bool (mention #85)
Browse files Browse the repository at this point in the history
  • Loading branch information
yoanlcq committed May 3, 2022
1 parent 84d5cb6 commit c43445a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/vec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,7 @@ macro_rules! vec_impl_reduce_bool_ops_for_primitive {
($c_or_simd:ident, $Vec:ident, $T:ty, ($($get:tt)+)) => {
impl $Vec<$T> {
/// Returns the result of logical AND (`&&`) on all elements of this vector.
/// Each element is converted to `bool` as follows: zero is `false`, and any other value is `true`.
///
/// ```
/// # use vek::vec::Vec4;
Expand All @@ -276,6 +277,7 @@ macro_rules! vec_impl_reduce_bool_ops_for_primitive {
}}
}
/// Returns the result of logical OR (`||`) on all elements of this vector.
/// Each element is converted to `bool` as follows: zero is `false`, and any other value is `true`.
///
/// ```
/// # use vek::vec::Vec4;
Expand Down

0 comments on commit c43445a

Please sign in to comment.