Skip to content

Commit

Permalink
one Write() instead of 3
Browse files Browse the repository at this point in the history
  • Loading branch information
rinatxp committed Apr 30, 2023
1 parent 1278c13 commit 833ef58
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Src/Newtonsoft.Json/JsonTextWriter.cs
Expand Up @@ -775,9 +775,7 @@ public override void WriteComment(string? text)
{
InternalWriteComment();

_writer.Write("/*");
_writer.Write(text);
_writer.Write("*/");
_writer.Write($"/*{text}*/");
}

/// <summary>
Expand Down

0 comments on commit 833ef58

Please sign in to comment.