Skip to content

Commit f472b50

Browse files
committed
chore: fix some typos
Signed-off-by: pavedroad <[email protected]>
1 parent e22ca03 commit f472b50

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

clippy_lints/src/methods/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2849,7 +2849,7 @@ declare_clippy_lint! {
28492849
/// the file is created from scratch, or ensure `truncate` is
28502850
/// called so that the truncation behaviour is explicit. `truncate(true)`
28512851
/// will ensure the file is entirely overwritten with new data, whereas
2852-
/// `truncate(false)` will explicitely keep the default behavior.
2852+
/// `truncate(false)` will explicitly keep the default behavior.
28532853
///
28542854
/// ### Example
28552855
/// ```rust,no_run

clippy_lints/src/wildcard_imports.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ fn is_super_only_import(segments: &[PathSegment<'_>]) -> bool {
213213
// Allow skipping imports containing user configured segments,
214214
// i.e. "...::utils::...::*" if user put `allowed-wildcard-imports = ["utils"]` in `Clippy.toml`
215215
fn is_allowed_via_config(segments: &[PathSegment<'_>], allowed_segments: &FxHashSet<String>) -> bool {
216-
// segment matching need to be exact instead of using 'contains', in case user unintentionaly put
216+
// segment matching need to be exact instead of using 'contains', in case user unintentionally put
217217
// a single character in the config thus skipping most of the warnings.
218218
segments.iter().any(|seg| allowed_segments.contains(seg.ident.as_str()))
219219
}

0 commit comments

Comments
 (0)