mirror of https://github.com/kdl-org/kdl-rs.git
docs: Fix version number in KdlDocument::v2_to_v1 (#122)
This commit is contained in:
parent
ce27425905
commit
6e61b54fae
|
|
@ -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)?;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue