From be1f4bdbe641d95bb8ce2f574f3538745408d934 Mon Sep 17 00:00:00 2001 From: Michael Davis Date: Sun, 6 Apr 2025 13:51:13 -0400 Subject: [PATCH] minor: format TOML examples as markdown code fences --- helix-loader/src/lib.rs | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/helix-loader/src/lib.rs b/helix-loader/src/lib.rs index 92dfedf98..54980dd7d 100644 --- a/helix-loader/src/lib.rs +++ b/helix-loader/src/lib.rs @@ -161,20 +161,26 @@ pub fn default_log_file() -> PathBuf { /// all keys in `left`'s table unioned with all keys in `right` with the values /// of `right` being merged recursively onto values of `left`. /// -/// crate::merge_toml_values(a, b, 3) combines, for example: -/// b: -/// \[\[language\]\] -/// name = "toml" -/// language-server = { command = "taplo", args = ["lsp", "stdio"] } +/// `crate::merge_toml_values(a, b, 3)` combines, for example: /// +/// b: +/// ```toml +/// [[language]] +/// name = "toml" +/// language-server = { command = "taplo", args = ["lsp", "stdio"] } +/// ``` /// a: -/// \[\[language\]\] -/// language-server = { command = "/usr/bin/taplo" } +/// ```toml +/// [[language]] +/// language-server = { command = "/usr/bin/taplo" } +/// ``` /// /// into: -/// \[\[language\]\] -/// name = "toml" -/// language-server = { command = "/usr/bin/taplo" } +/// ```toml +/// [[language]] +/// name = "toml" +/// language-server = { command = "/usr/bin/taplo" } +/// ``` /// /// thus it overrides the third depth-level of b with values of a if they exist, /// but otherwise merges their values