mirror of https://github.com/rust-lang/reference
Update src/types/closure.md
Co-authored-by: Josh Triplett <josh@joshtriplett.org>
This commit is contained in:
parent
702a71f187
commit
44f6e1e20f
|
@ -7,7 +7,7 @@ closure:
|
|||
|
||||
```rust
|
||||
#[derive(Debug)]
|
||||
struct Point { x:i32, y:i32 }
|
||||
struct Point { x: i32, y: i32 }
|
||||
struct Rectangle { left_top: Point, right_bottom: Point }
|
||||
|
||||
fn f<F : FnOnce() -> String> (g: F) {
|
||||
|
|
Loading…
Reference in New Issue