Skip to content

Normalize spacing in List<T>.Contains Cube example snippet#12763

Open
Copilot wants to merge 2 commits into
mainfrom
copilot/fix-extra-space-cube-example
Open

Normalize spacing in List<T>.Contains Cube example snippet#12763
Copilot wants to merge 2 commits into
mainfrom
copilot/fix-extra-space-cube-example

Conversation

Copilot AI commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

The List<T>.Contains docs page’s second C# example (Cube) had inconsistent spacing versus adjacent examples, causing a visible formatting mismatch. This PR aligns that snippet’s formatting with the surrounding style.

  • Scope

    • Updated one file: snippets/csharp/System.Collections.Generic/ListT/Contains/program.cs.
  • Change

    • Removed a single extra blank line between public class Cube : IEquatable<Cube> and its constructor.
  • Result

    • The rendered example now matches the spacing pattern used across nearby examples.
public class Cube : IEquatable<Cube>
{
    public Cube(int h, int l, int w)
    {
        this.Height = h;
        this.Length = l;
        this.Width = w;
    }
}

Copilot AI changed the title [WIP] Fix extra space in cube example Normalize spacing in List<T>.Contains Cube example snippet Jun 18, 2026
Copilot AI requested a review from gewarren June 18, 2026 20:10
@gewarren gewarren marked this pull request as ready for review June 18, 2026 20:11
@gewarren gewarren requested a review from a team as a code owner June 18, 2026 20:11
Copilot AI review requested due to automatic review settings June 18, 2026 20:11

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR makes a small formatting-only adjustment to the C# snippet used on the List<T>.Contains documentation page, ensuring the Cube example’s spacing matches adjacent examples in the docs.

Changes:

  • Removed a single extra blank line between public class Cube : IEquatable<Cube> and its constructor in the snippet.

@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Tagging subscribers to this area: @dotnet/area-system-collections

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants