aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2024-05-16 13:37:24 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2024-05-16 13:37:24 -0400
commit029ddc1fdf4002b23a8471ad8f762a843059e141 (patch)
treef6ad01dfa0ba656322aacb8d209d31854d7cae14 /src
parentdcc811b2cd524841accce2dadd93143d845a298e (diff)
downloadstasis-029ddc1fdf4002b23a8471ad8f762a843059e141.tar.gz
Documentation
Diffstat (limited to 'src')
-rw-r--r--src/relocation.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/relocation.c b/src/relocation.c
index 2f29d69..586d1ba 100644
--- a/src/relocation.c
+++ b/src/relocation.c
@@ -8,7 +8,7 @@
* Replace all occurrences of `target` with `replacement` in `original`
*
* ~~~{.c}
- * char *str = (char *)calloc(100, sizeof(char));
+ * char *str = calloc(100, sizeof(char));
* strcpy(str, "This are a test.");
* if (replace_text(str, "are", "is")) {
* fprintf(stderr, "string replacement failed\n");
@@ -91,7 +91,7 @@ int replace_text(char *original, const char *target, const char *replacement, un
* Replace `target` with `replacement` in `filename`
*
* ~~~{.c}
- * if (file_replace_text("/path/to/file.txt, "are", "is")) {
+ * if (file_replace_text("/path/to/file.txt", "are", "is")) {
* fprintf(stderr, "failed to replace strings in file\n");
* exit(1);
* }