fix most compiler/ doctests
This commit is contained in:
parent
bf611439e3
commit
7907385999
116 changed files with 666 additions and 609 deletions
|
@ -91,12 +91,13 @@
|
|||
//! another function. It suffices to just take a reference in order to introduce
|
||||
//! an edge. Consider the following example:
|
||||
//!
|
||||
//! ```rust
|
||||
//! ```
|
||||
//! # use core::fmt::Display;
|
||||
//! fn print_val<T: Display>(x: T) {
|
||||
//! println!("{}", x);
|
||||
//! }
|
||||
//!
|
||||
//! fn call_fn(f: &Fn(i32), x: i32) {
|
||||
//! fn call_fn(f: &dyn Fn(i32), x: i32) {
|
||||
//! f(x);
|
||||
//! }
|
||||
//!
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue