diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2015-09-02 15:09:50 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2015-09-02 15:09:50 +0900 |
| commit | 14f0e4a4e4657fe0dc6512cf735c9c75201bd406 (patch) | |
| tree | 11c479308cf7450e79ac283831f8777a8f3e5589 | |
| parent | 7ce5b21c1daa84a8e6d9af6876f3d007ec157efd (diff) | |
| download | mruby-14f0e4a4e4657fe0dc6512cf735c9c75201bd406.tar.gz mruby-14f0e4a4e4657fe0dc6512cf735c9c75201bd406.zip | |
update string.h.md; ref #2931
| -rw-r--r-- | doc/api/mruby/string.h.md | 2 | ||||
| -rw-r--r-- | src/string.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/doc/api/mruby/string.h.md b/doc/api/mruby/string.h.md index 1268792e0..7bf94df5b 100644 --- a/doc/api/mruby/string.h.md +++ b/doc/api/mruby/string.h.md @@ -69,7 +69,7 @@ Returns a concated string comprised of a Ruby string and a C string. Returns a concated string comprised of a Ruby string and a C string(A shorter alternative to mrb_str_cat).
### mrb_str_append
```C
- mrb_value mrb_str_append(mrb_state *mrb, mrb_value str, mrb_value str2);
+ mrb_value mrb_str_append(mrb_state *mrb, mrb_value str1, mrb_value str2);
```
Adds str2 to the end of str1.
### mrb_str_cmp
diff --git a/src/string.c b/src/string.c index e5f446bde..73ef341bb 100644 --- a/src/string.c +++ b/src/string.c @@ -2385,10 +2385,10 @@ mrb_str_cat_str(mrb_state *mrb, mrb_value str, mrb_value str2) } MRB_API mrb_value -mrb_str_append(mrb_state *mrb, mrb_value str, mrb_value str2) +mrb_str_append(mrb_state *mrb, mrb_value str1, mrb_value str2) { str2 = mrb_str_to_str(mrb, str2); - return mrb_str_cat_str(mrb, str, str2); + return mrb_str_cat_str(mrb, str1, str2); } #define CHAR_ESC_LEN 13 /* sizeof(\x{ hex of 32bit unsigned int } \0) */ |
