Skip to content

Commit

Permalink
Merge pull request #4 from Cysharp/hadashiA/fix-t4-cond
Browse files Browse the repository at this point in the history
Fix a wrong t4 condition
  • Loading branch information
neuecc committed Nov 16, 2023
2 parents 43bacb3 + 5abad87 commit f7eb625
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Utf8StringInterpolation/Utf8String.AppendFormatted.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1286,7 +1286,7 @@ void AppendFormattedAlignment(TimeSpan value, int alignment, string? format)
}
#endif

#if !NET8_0_OR_GREATER
# if true

[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void AppendFormatted(char? value, int alignment = 0, string? format = null)
Expand Down
2 changes: 1 addition & 1 deletion src/Utf8StringInterpolation/Utf8String.AppendFormatted.tt
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ namespace Utf8StringInterpolation;
public ref partial struct Utf8StringWriter<TBufferWriter>
{
<# foreach(var x in generateTypes) { #>
<#= (x.type is not "bool" or "char") ? "#if !NET8_0_OR_GREATER" : "# if true" #>
<#= (x.type is not "bool" and not "char") ? "#if !NET8_0_OR_GREATER" : "# if true" #>

[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void AppendFormatted(<#= x.type #>? value, int alignment = 0, string? format = null)
Expand Down

0 comments on commit f7eb625

Please sign in to comment.