File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -308,7 +308,7 @@ impl Any+Send {
308308 /// ```
309309 /// use std::any::Any;
310310 ///
311- /// fn modify_if_u32(s: &mut (Any+ Send)) {
311+ /// fn modify_if_u32(s: &mut (Any + Send)) {
312312 /// if let Some(num) = s.downcast_mut::<u32>() {
313313 /// *num = 42;
314314 /// }
@@ -366,7 +366,7 @@ impl Any+Send+Sync {
366366 /// ```
367367 /// use std::any::Any;
368368 ///
369- /// fn print_if_string(s: &(Any + Send)) {
369+ /// fn print_if_string(s: &(Any + Send + Sync )) {
370370 /// if let Some(string) = s.downcast_ref::<String>() {
371371 /// println!("It's a string({}): '{}'", string.len(), string);
372372 /// } else {
@@ -392,7 +392,7 @@ impl Any+Send+Sync {
392392 /// ```
393393 /// use std::any::Any;
394394 ///
395- /// fn modify_if_u32(s: &mut (Any+ Send)) {
395+ /// fn modify_if_u32(s: &mut (Any + Send + Sync )) {
396396 /// if let Some(num) = s.downcast_mut::<u32>() {
397397 /// *num = 42;
398398 /// }
You can’t perform that action at this time.
0 commit comments