Skip to content

Commit 1758faa

Browse files
authored
Fix JsonPrimitive.isString documentation (#2864)
correctly quote primitives Fixes #2863
1 parent 21c9e97 commit 1758faa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

formats/json/commonMain/src/kotlinx/serialization/json/JsonElement.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public sealed class JsonPrimitive : JsonElement() {
3636
* Indicates whether the primitive was explicitly constructed from [String] and
3737
* whether it should be serialized as one. E.g. `JsonPrimitive("42")` is represented
3838
* by a string, while `JsonPrimitive(42)` is not.
39-
* These primitives will be serialized as `42` and `"42"` respectively.
39+
* These primitives will be serialized as `"42"` and `42` respectively.
4040
*/
4141
public abstract val isString: Boolean
4242

0 commit comments

Comments
 (0)