Skip to content

Commit b9d753e

Browse files
committed
Auto merge of #7776 - tsoutsman:patch-1, r=flip1995
Fix typos I'm not sure whether I should add links to `bool`, `char`, and `str`. `slice` could also be linked to. changelog: none
2 parents c6b9158 + 8b37928 commit b9d753e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

clippy_utils/src/ty.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -224,15 +224,15 @@ fn is_normalizable_helper<'tcx>(
224224
result
225225
}
226226

227-
/// Returns true iff the given type is a non aggregate primitive (a bool or char, any integer or
228-
/// floating-point number type). For checking aggregation of primitive types (e.g. tuples and slices
229-
/// of primitive type) see `is_recursively_primitive_type`
227+
/// Returns `true` if the given type is a non aggregate primitive (a `bool` or `char`, any
228+
/// integer or floating-point number type). For checking aggregation of primitive types (e.g.
229+
/// tuples and slices of primitive type) see `is_recursively_primitive_type`
230230
pub fn is_non_aggregate_primitive_type(ty: Ty<'_>) -> bool {
231231
matches!(ty.kind(), ty::Bool | ty::Char | ty::Int(_) | ty::Uint(_) | ty::Float(_))
232232
}
233233

234-
/// Returns true iff the given type is a primitive (a bool or char, any integer or floating-point
235-
/// number type, a str, or an array, slice, or tuple of those types).
234+
/// Returns `true` if the given type is a primitive (a `bool` or `char`, any integer or
235+
/// floating-point number type, a `str`, or an array, slice, or tuple of those types).
236236
pub fn is_recursively_primitive_type(ty: Ty<'_>) -> bool {
237237
match ty.kind() {
238238
ty::Bool | ty::Char | ty::Int(_) | ty::Uint(_) | ty::Float(_) | ty::Str => true,

0 commit comments

Comments
 (0)