diff options
| -rw-r--r-- | docs/ccommon_api.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/ccommon_api.md b/docs/ccommon_api.md index 27bbf589..4d4e2f5e 100644 --- a/docs/ccommon_api.md +++ b/docs/ccommon_api.md @@ -76,11 +76,11 @@ cvec_str readFile(const char* name) // receiver should check errno variable cvec_str vec = cvec_str_init(); - c_with (FILE* fp = fopen(name, "r"), fclose(fp)) + c_with (FILE* fp = fopen(name, "r"), fclose(fp)) { c_with (cstr line = cstr_null, cstr_del(&line)) while (cstr_getline(&line, fp)) cvec_str_emplace_back(&vec, line.str); - + } return vec; } |
