Skip to content

Commit 0c9da57

Browse files
authored
fix(StdToml): fix typos in code examples and comments (#786)
1 parent 2f05b30 commit 0c9da57

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/StdToml.sol

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,16 @@ import {VmSafe} from "./Vm.sol";
88
// ```
99
// using stdToml for string;
1010
// string memory toml = vm.readFile("<some_path>");
11-
// toml.readUint("<json_path>");
11+
// toml.readUint("<toml_path>");
1212
// ```
1313
// To write:
1414
// ```
1515
// using stdToml for string;
16-
// string memory json = "json";
17-
// json.serialize("a", uint256(123));
18-
// string memory semiFinal = json.serialize("b", string("test"));
19-
// string memory finalJson = json.serialize("c", semiFinal);
20-
// finalJson.write("<some_path>");
16+
// string memory toml = "toml";
17+
// toml.serialize("a", uint256(123));
18+
// string memory semiFinal = toml.serialize("b", string("test"));
19+
// string memory finalToml = toml.serialize("c", semiFinal);
20+
// finalToml.write("<some_path>");
2121
// ```
2222

2323
library stdToml {

0 commit comments

Comments
 (0)