From 6b9f4503378fbc9a65e58d8662eb14271b988a5e Mon Sep 17 00:00:00 2001 From: Vance Palacio Date: Sat, 26 Feb 2022 21:11:29 +0000 Subject: [PATCH] Add/fix up comments --- src/config.rs | 2 +- src/renderer/html_handlebars/hbs_renderer.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/config.rs b/src/config.rs index 318e0c86..810d420e 100644 --- a/src/config.rs +++ b/src/config.rs @@ -631,7 +631,7 @@ pub struct Playground { /// Display line numbers on playground snippets. Default: `false`. pub line_numbers: bool, /// Set's the language the playground will work with - /// TODO: Turn this into an array when there's support for multiple languages + /// TODO: Use an array when there's support for multiple languages simultaneously pub language: String, } diff --git a/src/renderer/html_handlebars/hbs_renderer.rs b/src/renderer/html_handlebars/hbs_renderer.rs index 41bdac8e..f9f8be89 100644 --- a/src/renderer/html_handlebars/hbs_renderer.rs +++ b/src/renderer/html_handlebars/hbs_renderer.rs @@ -843,6 +843,7 @@ fn add_playground_pre( .into_owned() } +/// Ensures proper formatting specifically for rust code fn add_playground_pre_rust( playground_config: &Playground, edition: Option,