diff --git a/README.md b/README.md index aa23c8c1a7..79641fa34f 100644 --- a/README.md +++ b/README.md @@ -139,8 +139,7 @@ var c = default(CustomerId); // error VOG009: Type 'CustomerId' cannot be constr var c = GetCustomerId(); // error VOG010: Type 'CustomerId' cannot be constructed with 'new' as it is prohibited var c = Activator.CreateInstance(); // error VOG025: Type 'CustomerId' cannot be constructed via Reflection as it is prohibited. -var c = Activator.CreateInstance(); // error VOG025: Type 'MyVo' cannot be constructed via Reflection as -it is prohibited +var c = Activator.CreateInstance(); // error VOG025: Type 'CustomerId' cannot be constructed via Reflection as it is prohibited. // catches lambda expressions Func f = () => default; // error VOG009: Type 'CustomerId' cannot be constructed with default as it is prohibited.