summaryrefslogtreecommitdiff
path: root/ext/json
diff options
context:
space:
mode:
authorFlorian Frank <flori@ping.de>2009-10-25 16:16:21 +0100
committerFlorian Frank <flori@ping.de>2009-10-26 22:58:08 +0100
commit6752404ac8a66bd959d8908e363d2784edd91bfc (patch)
tree79050ee3e7ad30483f63e707be7ba0b78e4afce8 /ext/json
parent9a74e40caa5b3aa2f6726ee22052115c45e5bc04 (diff)
downloadjson-6752404ac8a66bd959d8908e363d2784edd91bfc.tar.gz
fixed typo
Diffstat (limited to 'ext/json')
-rw-r--r--ext/json/ext/generator/generator.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/json/ext/generator/generator.c b/ext/json/ext/generator/generator.c
index 49997f5..a63afa5 100644
--- a/ext/json/ext/generator/generator.c
+++ b/ext/json/ext/generator/generator.c
@@ -116,7 +116,7 @@ static int hash_to_json_state_i(VALUE key, VALUE value, VALUE Vstate)
return ST_CONTINUE;
}
-inline static VALUE mHash_json_transfrom(VALUE self, VALUE Vstate, VALUE Vdepth) {
+inline static VALUE mHash_json_transform(VALUE self, VALUE Vstate, VALUE Vdepth) {
long depth, len = RHASH_SIZE(self);
VALUE result;
GET_STATE(Vstate);
@@ -181,14 +181,14 @@ static VALUE mHash_to_json(int argc, VALUE *argv, VALUE self)
} else {
GET_STATE(Vstate);
check_max_nesting(state, depth);
- result = mHash_json_transfrom(self, Vstate, LONG2FIX(depth));
+ result = mHash_json_transform(self, Vstate, LONG2FIX(depth));
}
OBJ_INFECT(result, self);
FORCE_UTF8(result);
return result;
}
-inline static VALUE mArray_json_transfrom(VALUE self, VALUE Vstate, VALUE Vdepth) {
+inline static VALUE mArray_json_transform(VALUE self, VALUE Vstate, VALUE Vdepth) {
long i, len = RARRAY_LEN(self);
VALUE shift, result;
long depth = NIL_P(Vdepth) ? 0 : FIX2LONG(Vdepth);
@@ -248,7 +248,7 @@ static VALUE mArray_to_json(int argc, VALUE *argv, VALUE self) {
}
rb_str_buf_cat2(result, "]");
} else {
- result = mArray_json_transfrom(self, Vstate, Vdepth);
+ result = mArray_json_transform(self, Vstate, Vdepth);
}
OBJ_INFECT(result, self);
FORCE_UTF8(result);