docs: Fix version number in KdlDocument::v2_to_v1 (#122)

This commit is contained in:
Michael Cooper 2025-03-30 14:35:54 -07:00 committed by GitHub
parent ce27425905
commit 6e61b54fae
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -390,7 +390,7 @@ impl KdlDocument {
} }
/// Takes a KDL v2 document string and returns the same document, but /// Takes a KDL v2 document string and returns the same document, but
/// autoformatted into valid KDL v2 syntax. /// autoformatted into valid KDL v1 syntax.
#[cfg(feature = "v1")] #[cfg(feature = "v1")]
pub fn v2_to_v1(s: &str) -> Result<String, KdlError> { pub fn v2_to_v1(s: &str) -> Result<String, KdlError> {
let mut doc = KdlDocument::parse_v2(s)?; let mut doc = KdlDocument::parse_v2(s)?;