]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
tools: ynl: fix typo in info string
authorRuben Wauters <rubenru09@aol.com>
Mon, 28 Apr 2025 21:51:09 +0000 (22:51 +0100)
committerJakub Kicinski <kuba@kernel.org>
Tue, 29 Apr 2025 22:13:52 +0000 (15:13 -0700)
replaces formmated with formatted
also corrects grammar by replacing a with an, and capitalises RST

Signed-off-by: Ruben Wauters <rubenru09@aol.com>
Reviewed-by: Donald Hunter <donald.hunter@gmail.com>
Link: https://patch.msgid.link/20250428215541.6029-1-rubenru09@aol.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/net/ynl/pyynl/ynl_gen_rst.py

index 6c56d0d726b4131957551f4b6c09be8c043db766..0cb6348e28d3b065165670e3772bcfdc7e9f5742 100755 (executable)
@@ -392,7 +392,7 @@ def parse_arguments() -> argparse.Namespace:
 
 
 def parse_yaml_file(filename: str) -> str:
-    """Transform the YAML specified by filename into a rst-formmated string"""
+    """Transform the YAML specified by filename into an RST-formatted string"""
     with open(filename, "r", encoding="utf-8") as spec_file:
         yaml_data = yaml.safe_load(spec_file)
         content = parse_yaml(yaml_data)