Browse Source

Collection expression

Brandon Thetford 1 year ago
parent
commit
e7fdd4c5a1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Terminal.Gui/Drawing/LineCanvas.cs

+ 1 - 1
Terminal.Gui/Drawing/LineCanvas.cs

@@ -4,7 +4,7 @@ namespace Terminal.Gui;
 /// <summary>Facilitates box drawing and line intersection detection and rendering.  Does not support diagonal lines.</summary>
 public class LineCanvas : IDisposable
 {
-    private readonly List<StraightLine> _lines = new ();
+    private readonly List<StraightLine> _lines = [];
 
     private readonly Dictionary<IntersectionRuneType, IntersectionRuneResolver> runeResolvers = new ()
     {