Skip to content

Commit 4a93cc0

Browse files
authored
Merge pull request #1132 from bartsmykla/generic-bounds-small-mistake
Changed word `function` to `type` in comment of fn area
2 parents e7dfa39 + d558f46 commit 4a93cc0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/generics/bounds.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ fn print_debug<T: Debug>(t: &T) {
4949
println!("{:?}", t);
5050
}
5151
52-
// `T` must implement `HasArea`. Any function which meets
52+
// `T` must implement `HasArea`. Any type which meets
5353
// the bound can access `HasArea`'s function `area`.
5454
fn area<T: HasArea>(t: &T) -> f64 { t.area() }
5555

0 commit comments

Comments
 (0)