From 413df362536c5a4d29f69ebda654a194b14eef0a Mon Sep 17 00:00:00 2001 From: Eric Huss Date: Wed, 31 Mar 2021 13:55:52 -0700 Subject: [PATCH] Fix semver docs for 1.51. --- src/doc/src/reference/semver.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 } ```