From 7bbbfd046324363c8db1fb15d39aeb02fe7331b5 Mon Sep 17 00:00:00 2001 From: Melody Horn Date: Sun, 21 Mar 2021 14:10:24 -0600 Subject: hilarious and original joke --- examples/decode.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'examples/decode.rs') diff --git a/examples/decode.rs b/examples/decode.rs index b5d6a99..63fb315 100644 --- a/examples/decode.rs +++ b/examples/decode.rs @@ -1,12 +1,12 @@ //! An example showing off the usage of `Deserialize` to automatically decode -//! TOML into a Rust `struct` +//! MILF into a Rust `struct` #![deny(warnings)] use serde_derive::Deserialize; /// This is what we're going to decode into. Each field is optional, meaning -/// that it doesn't have to be present in TOML. +/// that it doesn't have to be present in MILF. #[derive(Debug, Deserialize)] struct Config { global_string: Option, @@ -32,7 +32,7 @@ struct PeerConfig { } fn main() { - let toml_str = r#" + let milf_str = r#" global_string = "test" global_integer = 5 @@ -48,6 +48,6 @@ fn main() { ip = "127.0.0.1" "#; - let decoded: Config = toml::from_str(toml_str).unwrap(); + let decoded: Config = milf::from_str(milf_str).unwrap(); println!("{:#?}", decoded); } -- cgit v1.2.3