From 203f4daad40b5765a6c78f33346f3ee0f3eb9bca Mon Sep 17 00:00:00 2001 From: workingjubilee Date: Thu, 19 Sep 2019 07:27:02 -0700 Subject: [PATCH] Completes run() -> main() transitions --- src/encoding/complex/toml.md | 4 +--- src/encoding/csv/read.md | 4 +--- src/web/url/origin.md | 4 +--- 3 files changed, 3 insertions(+), 9 deletions(-) diff --git a/src/encoding/complex/toml.md b/src/encoding/complex/toml.md index fc66db95..fd7aa3da 100644 --- a/src/encoding/complex/toml.md +++ b/src/encoding/complex/toml.md @@ -61,7 +61,7 @@ struct Package { # } # } -fn run() -> Result<()> { +fn main() -> Result<()> { let toml_content = r#" [package] name = "your_package" @@ -81,6 +81,4 @@ fn run() -> Result<()> { Ok(()) } -# -# quick_main!(run); ``` diff --git a/src/encoding/csv/read.md b/src/encoding/csv/read.md index e6f3d815..ecff7d1a 100644 --- a/src/encoding/csv/read.md +++ b/src/encoding/csv/read.md @@ -55,7 +55,7 @@ struct Record { description: String, } -fn run() -> Result<()> { +fn main() -> Result<()> { let csv = "year,make,model,description 1948,Porsche,356,Luxury sports car 1967,Ford,Mustang fastback 1967,American car"; @@ -75,8 +75,6 @@ fn run() -> Result<()> { Ok(()) } -# -# quick_main!(run); ``` [`csv::ByteRecord`]: https://docs.rs/csv/*/csv/struct.ByteRecord.html diff --git a/src/web/url/origin.md b/src/web/url/origin.md index 563691a5..dc10e183 100644 --- a/src/web/url/origin.md +++ b/src/web/url/origin.md @@ -39,7 +39,7 @@ use url::{Url, Origin, Host}; # } # } # -fn run() -> Result<()> { +fn main() -> Result<()> { let s = "ftp://rust-lang.org/examples"; let url = Url::parse(s)?; @@ -55,8 +55,6 @@ fn run() -> Result<()> { Ok(()) } -# -# quick_main!(run); ``` [`origin`]: https://docs.rs/url/*/url/struct.Url.html#method.origin