diff --git a/doc/variables.xml b/doc/variables.xml
index 6cf41a2f..744c4d4e 100644
--- a/doc/variables.xml
+++ b/doc/variables.xml
@@ -3873,11 +3873,11 @@
-
+
- Strips all whitespace from ends of input.
+ Strips all trailing whitespace from input.
diff --git a/src/core.cc b/src/core.cc
index 8ad3e15d..42caed22 100644
--- a/src/core.cc
+++ b/src/core.cc
@@ -895,7 +895,7 @@ struct text_object *construct_text_object(char *s, const char *arg, long line,
END OBJ(uppercase, 0) obj->data.s = STRNDUP_ARG;
obj->callbacks.print = &print_uppercase;
obj->callbacks.free = &gen_free_opaque;
- END OBJ(strip, 0) obj->data.s = STRNDUP_ARG;
+ END OBJ(rstrip, 0) obj->data.s = STRNDUP_ARG;
obj->callbacks.print = &strip_trailing_whitespace;
obj->callbacks.free = &gen_free_opaque;
END OBJ(catp, 0) obj->data.s = STRNDUP_ARG;