Skip to content

Commit

Permalink
Change rbx_xml docs to use ustr convenience function
Browse files Browse the repository at this point in the history
  • Loading branch information
kennethloeffler committed Oct 29, 2024
1 parent 813a915 commit 5a6d49a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rbx_xml/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
//! pass in custom options.
//!
//! ```
//! use rbx_dom_weak::{Ustr, types::Variant};
//! use rbx_dom_weak::{ustr, types::Variant};
//!
//! let model_file = r#"
//! <roblox version="4">
Expand All @@ -34,7 +34,7 @@
//! let number_value = model.get_by_ref(number_value_ref).unwrap();
//!
//! assert_eq!(
//! number_value.properties.get(&Ustr::from("Value")),
//! number_value.properties.get(&ustr("Value")),
//! Some(&Variant::Float64(12345.0)),
//! );
//! # Ok::<(), Box<dyn std::error::Error>>(())
Expand Down

0 comments on commit 5a6d49a

Please sign in to comment.