From 88561269bd0ba82139824558b78223aeb8df1f67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Sch=C3=A4fer?= Date: Sun, 27 Apr 2025 12:21:30 +0200 Subject: [PATCH] xso: fix documentation typos --- xso/src/from_xml_doc.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xso/src/from_xml_doc.md b/xso/src/from_xml_doc.md index 00e17bbf18659e8c18804c63506927e9037e720a..772b34853aeb652b1eef1a5791f96741d4b3be01 100644 --- a/xso/src/from_xml_doc.md +++ b/xso/src/from_xml_doc.md @@ -279,7 +279,7 @@ first field which matches will be taken. The only exception is When XML is generated from a struct, the child elements are also generated in the order of the fields. That means that passing an XML element through -FromXml and IntoXml may re-order some child elements. +`FromXml` and `AsXml` may re-order some child elements. Sorting order between elements which match the same field is generally preserved, if the container preserves sort order on insertion. @@ -316,7 +316,7 @@ is generated using [`core::default::Default`], requiring the field type to implement the `Default` trait for a `FromXml` derivation. `default` has no influence on `AsXml`. -If `type_` is specified and the `text` meta is used within an +If `type_` is specified and the `attribute` meta is used within an `#[xml(extract(fields(..)))]` meta, the specified type is used instead of the field type on which the `extract` is declared.