Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonCropp committed Apr 28, 2024
1 parent 8579ddf commit aad58f9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ public class Person
public required string Name { get; init; }
}
```
<sup><a href='/src/Tests/Required.cs#L2-L13' title='Snippet source file'>snippet source</a> | <a href='#snippet-Required' title='Start of snippet'>anchor</a></sup>
<sup><a href='/src/Tests/Required.cs#L1-L12' title='Snippet source file'>snippet source</a> | <a href='#snippet-Required' title='Start of snippet'>anchor</a></sup>
<!-- endSnippet -->


Expand Down
6 changes: 3 additions & 3 deletions src/Polyfill/SpanLineEnumerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@

namespace System.Text;

using System.Diagnostics;
using System.Diagnostics.CodeAnalysis;
using Link = System.ComponentModel.DescriptionAttribute;
using Diagnostics;
using Diagnostics.CodeAnalysis;
using Link = ComponentModel.DescriptionAttribute;

/// <summary>
/// Enumerates the lines of a <see cref="ReadOnlySpan{Char}"/>.
Expand Down
2 changes: 2 additions & 0 deletions src/Tests/PolyfillTests_IEnumerable.cs
Original file line number Diff line number Diff line change
Expand Up @@ -185,9 +185,11 @@ public void ElementAtIndex()
{
IEnumerable<int> list = new List<int> { 1, 2 };

// ReSharper disable ArrangeObjectCreationWhenTypeNotEvident
Assert.AreEqual(2, list.ElementAt(new Index(1)));
Assert.AreEqual(2, list.ElementAtOrDefault(new Index(1)));
Assert.AreEqual(0, list.ElementAtOrDefault(new Index(3)));
// ReSharper restore ArrangeObjectCreationWhenTypeNotEvident
}
#endif

Expand Down

0 comments on commit aad58f9

Please sign in to comment.