]> git.lizzy.rs Git - rust.git/blobdiff - src/tools/rustfmt/src/imports.rs
Rollup merge of #106798 - scottmcm:signum-via-cmp, r=Mark-Simulacrum
[rust.git] / src / tools / rustfmt / src / imports.rs
index d9dc8d004aff42d4b24eea2c400ca33c6dfecbd1..339e5cef5af911675d0346344f662862c45c642a 100644 (file)
@@ -251,8 +251,8 @@ fn flatten_use_trees(
     use_trees: Vec<UseTree>,
     import_granularity: ImportGranularity,
 ) -> Vec<UseTree> {
-    // Return non-sorted single occurance of the use-trees text string;
-    // order is by first occurance of the use-tree.
+    // Return non-sorted single occurrence of the use-trees text string;
+    // order is by first occurrence of the use-tree.
     use_trees
         .into_iter()
         .flat_map(|tree| tree.flatten(import_granularity))