diff --git a/tools/lib/python/kdoc/kdoc_parser.py b/tools/lib/python/kdoc/kdoc_parser.py index 884f42584667..9cba20f827c4 100644 --- a/tools/lib/python/kdoc/kdoc_parser.py +++ b/tools/lib/python/kdoc/kdoc_parser.py @@ -601,7 +601,8 @@ class KernelDoc: if not suggestions: return "" - return f"(did you mean one of: '{"', '".join(suggestions)}')" + joined_suggestions = "', '".join(suggestions) + return f"(did you mean one of: '{joined_suggestions}')" def check_sections(self, ln, decl_name, decl_type): """