Skip to content

Commit 55988ad

Browse files
committed
Fix build warnings
Mostly fix anchors. The one C# 9 spec was never intended to be published.
1 parent 572ce3b commit 55988ad

File tree

6 files changed

+7
-6
lines changed

6 files changed

+7
-6
lines changed

docfx.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,8 @@
7777
"csharp-9.0/nullable-reference-types-specification.md",
7878
"csharp-9.0/nullable-constructor-analysis.md",
7979
"csharp-9.0/nullable-parameter-default-value-analysis.md",
80-
"csharp-9.0/skip-localsinit.md"
80+
"csharp-9.0/skip-localsinit.md",
81+
"csharp-9.0/variance-safety-for-static-interface-members.md"
8182
]
8283
},
8384
{

docs/csharp/misc/cs0612.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ ms.assetid: 7695f3b7-ffef-43f7-83db-fc1a9e361f1a
1212

1313
'member' is obsolete
1414

15-
The class designer marked a member with the [Obsolete attribute](../language-reference/attributes/general.md#obsolete-attribute). This means that the member might not be supported in a future version of the class.
15+
The class designer marked a member with the [Obsolete attribute](../language-reference/attributes/general.md#obsolete-and-deprecated-attribute). This means that the member might not be supported in a future version of the class.
1616

1717
The following sample shows how accessing an obsolete member generates CS0612:
1818

docs/csharp/misc/cs0619.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ ms.assetid: a2060eb1-cda5-493c-b049-9b1792f88207
1212

1313
'member' is obsolete: 'text'
1414

15-
A class member was marked with the [Obsolete](../language-reference/attributes/general.md#obsolete-attribute) attribute, such that an error will be issued when the class member is referenced.
15+
A class member was marked with the [Obsolete](../language-reference/attributes/general.md#obsolete-and-deprecated-attribute) attribute, such that an error will be issued when the class member is referenced.
1616

1717
## Example
1818

docs/csharp/versioning.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ Here are some things to consider when trying to maintain backwards compatibility
4646
will have to be updated. This is a huge breaking change and is strongly discouraged.
4747
- Method signatures: When updating a method behavior requires you to change its signature as well, you should instead create an overload so that code calling into that method will still work.
4848
You can always manipulate the old method signature to call into the new method signature so that implementation remains consistent.
49-
- [Obsolete attribute](language-reference/attributes/general.md#obsolete-attribute): You can use this attribute in your code to specify classes or class members that are deprecated and likely to be removed in future versions. This ensures developers utilizing your library are better prepared for breaking changes.
49+
- [Obsolete attribute](language-reference/attributes/general.md#obsolete-and-deprecated-attribute): You can use this attribute in your code to specify classes or class members that are deprecated and likely to be removed in future versions. This ensures developers utilizing your library are better prepared for breaking changes.
5050
- Optional Method Arguments: When you make previously optional method arguments compulsory or change their default value then all code that does not supply those arguments will need to be updated.
5151

5252
> [!NOTE]

docs/csharp/whats-new/csharp-12.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ The difference is that the compiler can take advantage of known information abou
138138

139139
## Experimental attribute
140140

141-
Types, methods, or assemblies can be marked with the <xref:System.Diagnostics.CodeAnalysis.ExperimentalAttribute?displayProperty=nameWithType> to indicate an experimental feature. The compiler issues a warning if you access a method or type annotated with the <xref:System.Diagnostics.CodeAnalysis.ExperimentalAttribute>. All types included in an assembly marked with the `Experimental` attribute are experimental. You can read more in the article on [General attributes read by the compiler](../language-reference/attributes/general.md#experimental-attribute), or the [feature specification](~/_csharplang/proposals/csharp-12.0/experimental-attribute.md).
141+
Types, methods, or assemblies can be marked with the <xref:System.Diagnostics.CodeAnalysis.ExperimentalAttribute?displayProperty=nameWithType> to indicate an experimental feature. The compiler issues a warning if you access a method or type annotated with the <xref:System.Diagnostics.CodeAnalysis.ExperimentalAttribute>. All types included in an assembly marked with the `Experimental` attribute are experimental. You can read more in the article on [General attributes read by the compiler](../language-reference/attributes/general.md#experimental-attributes), or the [feature specification](~/_csharplang/proposals/csharp-12.0/experimental-attribute.md).
142142

143143
## Interceptors
144144

docs/fundamentals/networking/http/httpclient-guidelines.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ The preceding code:
9494
- Instantiates an `HttpClient` given the `resilienceHandler`.
9595

9696
> [!IMPORTANT]
97-
> The `Microsoft.Extensions.Http.Resilience` library is currently marked as [experimental](../../../csharp/language-reference/attributes/general.md#experimental-attribute) and it may change in the future.
97+
> The `Microsoft.Extensions.Http.Resilience` library is currently marked as [experimental](../../../csharp/language-reference/attributes/general.md#experimental-attributes) and it may change in the future.
9898
9999
## See also
100100

0 commit comments

Comments
 (0)