Minor readme fix to show better code (#3835)

This commit is contained in:
Cijo Thomas 2022-10-27 23:36:32 -04:00 committed by GitHub
parent f921ae3945
commit 9b372023a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -204,7 +204,7 @@ with the metric are of interest to you.
instrumentName: "MyFruitCounter",
metricStreamConfiguration: new MetricStreamConfiguration
{
TagKeys = new string[] { },
TagKeys = Array.Empty<string>(),
})
...
@ -255,7 +255,7 @@ default boundaries. This requires the use of
// There are no buckets exported in this case.
.AddView(
instrumentName: "MyHistogram",
new ExplicitBucketHistogramConfiguration { Boundaries = new double[] { } })
new ExplicitBucketHistogramConfiguration { Boundaries = Array.Empty<double>() })
```
```csharp