mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-06-19 13:28:16 +08:00
fix some nullability issues
This commit is contained in:

committed by
Patrik Svensson

parent
79742ce9e3
commit
e71db7f78c
@ -469,7 +469,7 @@ namespace Spectre.Console.Rendering
|
||||
/// <param name="segment">The segment to truncate.</param>
|
||||
/// <param name="maxWidth">The maximum width that the segment may occupy.</param>
|
||||
/// <returns>A new truncated segment, or <c>null</c>.</returns>
|
||||
public static Segment? Truncate(RenderContext context, Segment segment, int maxWidth)
|
||||
public static Segment? Truncate(RenderContext context, Segment? segment, int maxWidth)
|
||||
{
|
||||
if (context is null)
|
||||
{
|
||||
|
Reference in New Issue
Block a user