Skip to content

Commit d558f46

Browse files
author
Bart Smykla
committed
Changed word function to type in comment of fn area
Closes #1130 Function area is taking generic type instead of function, so word `type` is correct in that scenario as suggested by @steveklabnik in issue #1130 Signed-off-by: Bart Smykla <[email protected]>
1 parent e7dfa39 commit d558f46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/generics/bounds.md

Lines changed: 1 addition & 1 deletion
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)