Update src/types/closure.md

Co-authored-by: Josh Triplett <josh@joshtriplett.org>
This commit is contained in:
Aman Arora 2021-11-19 14:06:04 -08:00 committed by GitHub
parent 702a71f187
commit 44f6e1e20f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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) {