diff --git a/src/doc/src/reference/semver.md b/src/doc/src/reference/semver.md index 2e5009c4e89..97dbead9e62 100644 --- a/src/doc/src/reference/semver.md +++ b/src/doc/src/reference/semver.md @@ -634,7 +634,7 @@ pub trait Trait {} use updated_crate::Trait; struct Foo; -impl Trait for Foo {} // Error: wrong number of type arguments +impl Trait for Foo {} // Error: missing generics ``` Mitigating strategies: @@ -943,7 +943,7 @@ pub fn foo() {} use updated_crate::foo; fn main() { - foo::(); // Error: wrong number of type arguments + foo::(); // Error: this function takes 2 type arguments but only 1 type argument was supplied } ```