diff options
| author | Lzu Tao <taolzu@gmail.com> | 2019-10-01 11:55:46 +0000 |
|---|---|---|
| committer | Lzu Tao <taolzu@gmail.com> | 2019-10-01 11:55:46 +0000 |
| commit | 6c1b447f2e67f5eae89394344ade698aca3ec7e6 (patch) | |
| tree | ce37bd636efc867ab133b5c78c7da745da2939ba /src/liballoc/sync.rs | |
| parent | d16ee891c63e2441ba97072a83fa79b0b6e6e01a (diff) | |
| download | rust-6c1b447f2e67f5eae89394344ade698aca3ec7e6.tar.gz rust-6c1b447f2e67f5eae89394344ade698aca3ec7e6.zip | |
Remove unneeded `fn main` blocks from docs
Diffstat (limited to 'src/liballoc/sync.rs')
| -rw-r--r-- | src/liballoc/sync.rs | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/liballoc/sync.rs b/src/liballoc/sync.rs index 45f98162e4c..5977e69b7fa 100644 --- a/src/liballoc/sync.rs +++ b/src/liballoc/sync.rs @@ -1244,11 +1244,9 @@ impl Arc<dyn Any + Send + Sync> { /// } /// } /// - /// fn main() { - /// let my_string = "Hello World".to_string(); - /// print_if_string(Arc::new(my_string)); - /// print_if_string(Arc::new(0i8)); - /// } + /// let my_string = "Hello World".to_string(); + /// print_if_string(Arc::new(my_string)); + /// print_if_string(Arc::new(0i8)); /// ``` pub fn downcast<T>(self) -> Result<Arc<T>, Self> where |
