Minor change to README.md code snippet

This commit is contained in:
2025-11-18 18:57:39 +01:00
parent 8c98835364
commit 9b40edb56c
+2 -1
View File
@@ -8,11 +8,12 @@ int main(void)
{
ToastyString addr = TOASTY_STR("127.0.0.1");
int port = 8080;
ToastyString file = TOASTY_STR("/my_file.txt");
// Connect to cluster
ToastyFS *toasty = toasty_connect(addr, port);
ToastyString file = TOASTY_STR("/my_file.txt");
// Create and write to a file
toasty_create_file(toasty, file, 4096);
toasty_write(toasty, file, 0, "Hello!", 6);