Skip to content

Commit 339369e

Browse files
committed
✏️ update code examples in index.md to use explicit type annotations for clarity
1 parent 7e11aa4 commit 339369e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@ Ported from [qs](https://www.npmjs.com/package/qs) for JavaScript.
3434
using QsNet;
3535

3636
// Decode
37-
var obj = Qs.Decode("foo[bar]=baz&foo[list][]=a&foo[list][]=b");
37+
Dictionary<string, object?> obj = Qs.Decode("foo[bar]=baz&foo[list][]=a&foo[list][]=b");
3838
// -> { "foo": { "bar": "baz", "list": ["a", "b"] } }
3939
4040
// Encode
41-
var qs = Qs.Encode(new Dictionary<string, object?>
41+
string qs = Qs.Encode(new Dictionary<string, object?>
4242
{
4343
["foo"] = new Dictionary<string, object?> { ["bar"] = "baz" }
4444
});

0 commit comments

Comments
 (0)