[clang-format] Fix comment in spaceRequiredBefore. NFC.

This commit is contained in:
Marek Kurdej 2022-01-21 18:17:55 +01:00
parent e4a556268e
commit 23a7bb541d
1 changed files with 1 additions and 1 deletions

View File

@ -3323,7 +3323,7 @@ bool TokenAnnotator::spaceRequiredBefore(const AnnotatedLine &Line,
// or import .....;
if (Left.is(Keywords.kw_import) && Right.isOneOf(tok::less, tok::ellipsis))
return true;
// No space between module :.
// Space between `module :` and `import :`.
if (Left.isOneOf(Keywords.kw_module, Keywords.kw_import) &&
Right.is(TT_ModulePartitionColon))
return true;