We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
StringDoc
1 parent 74ad911 commit 9c58e07Copy full SHA for 9c58e07
Src/CSharpier/DocTypes/Doc.cs
@@ -12,10 +12,7 @@ public override string ToString()
12
return DocSerializer.Serialize(this);
13
}
14
15
- public static implicit operator Doc(string value)
16
- {
17
- return new StringDoc(value);
18
- }
+ public static implicit operator Doc(string value) => StringDoc.ToStringDoc(value);
19
20
public static NullDoc Null => NullDoc.Instance;
21
0 commit comments