mirror of https://github.com/helix-editor/helix
minor: format TOML examples as markdown code fences
parent
424ffb4c2b
commit
be1f4bdbe6
|
@ -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:
|
||||
/// `crate::merge_toml_values(a, b, 3)` combines, for example:
|
||||
///
|
||||
/// b:
|
||||
/// \[\[language\]\]
|
||||
/// ```toml
|
||||
/// [[language]]
|
||||
/// name = "toml"
|
||||
/// language-server = { command = "taplo", args = ["lsp", "stdio"] }
|
||||
///
|
||||
/// ```
|
||||
/// a:
|
||||
/// \[\[language\]\]
|
||||
/// ```toml
|
||||
/// [[language]]
|
||||
/// language-server = { command = "/usr/bin/taplo" }
|
||||
/// ```
|
||||
///
|
||||
/// into:
|
||||
/// \[\[language\]\]
|
||||
/// ```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
|
||||
|
|
Loading…
Reference in New Issue