summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGary Grossman <gary@explory.com>2014-12-05 01:45:05 -0800
committerMatt Stancliff <matt@genges.com>2015-01-05 11:21:38 -0500
commit2d814b8da368a4c7b2a477c09788637c98ba857f (patch)
tree8050fbc7355483adefb4184332da5d1e6eac8928
parentabbd3407852ec07fa2db028cfefb988f4f7af143 (diff)
Fix minor comment problems
"sdscatpritf" -> "sdscatprintf" Example used sdsempty("text") but should say sdsnew("text") Closes #282
-rw-r--r--sds.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sds.c b/sds.c
index 5306f1f..65ff649 100644
--- a/sds.c
+++ b/sds.c
@@ -289,7 +289,7 @@ sds sdscpy(sds s, const char *t) {
return sdscpylen(s, t, strlen(t));
}
-/* Like sdscatpritf() but gets va_list instead of being variadic. */
+/* Like sdscatprintf() but gets va_list instead of being variadic. */
sds sdscatvprintf(sds s, const char *fmt, va_list ap) {
va_list cpy;
char *buf, *t;
@@ -321,8 +321,8 @@ sds sdscatvprintf(sds s, const char *fmt, va_list ap) {
*
* Example:
*
- * s = sdsempty("Sum is: ");
- * s = sdscatprintf(s,"%d+%d = %d",a,b,a+b).
+ * s = sdsnew("Sum is: ");
+ * s = sdscatprintf(s,"%d+%d = %d",a,b,a+b);
*
* Often you need to create a string from scratch with the printf-alike
* format. When this is the need, just use sdsempty() as the target string: