Skip to content

Commit 26f2473

Browse files
authored
Update C2556 error message and add blockquotes
1 parent 087e22d commit 26f2473

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/error-messages/compiler-errors-2/compiler-error-c2556.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ms.assetid: fc4399ad-45b3-49fd-be1f-0b13956a595a
88
---
99
# Compiler Error C2556
1010

11-
'identifier' : overloaded functions only differ by return type
11+
> '*function1*': overloaded function differs only by return type from '*function2*'
1212
1313
The overloaded functions have different return types but the same parameter list. Each overloaded function must have a distinct formal parameter list.
1414

docs/error-messages/compiler-errors-2/compiler-errors-c2500-through-c2599.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ The articles in this section of the documentation explain a subset of the error
7171
|[Compiler error C2553](compiler-error-C2553.md)|'*type* *derived_class*::*function*': overriding virtual function return type differs from '*type* *base_class*::*function*'|
7272
|Compiler error C2554|'*variable*': 'constinit' only allowed on a variable declaration with static or thread storage duration|
7373
|[Compiler error C2555](compiler-error-C2555.md)|'*derived_class*::*function*': overriding virtual function return type differs and is not covariant from '*base_class*::*function*'|
74-
|[Compiler error C2556](compiler-error-C2556.md)|'*type1* *class*::*function*': overloaded function differs only by return type from '*type2* *class*::*function*'|
74+
|[Compiler error C2556](compiler-error-C2556.md)|'*function1*': overloaded function differs only by return type from '*function2*'|
7575
|[Compiler error C2557](compiler-error-C2557.md)|'*identifier*': private and protected members cannot be initialized without a constructor|
7676
|[Compiler error C2558](compiler-error-C2558.md)|class '*class*': no copy constructor available or copy constructor is declared 'explicit'|
7777
|Compiler error C2559|'*identifier*': cannot overload a member function without ref-qualifier with a member function with ref-qualifier|

0 commit comments

Comments
 (0)