Permalink
Browse files

fix '#info-' call

  • Loading branch information...
1 parent bc962d8 commit 3734fd17e1b4c6fe3bfea6440eee4dc24057f667 Ali Yakamercan committed Dec 12, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/json_rec.erl
View
@@ -226,7 +226,7 @@ module_set(Ms, Kv, Rec) ->
module_rec_fields(Ms, Rec ) ->
M = module_has_rec(Ms,Rec),
- M:'#info-'(fields,Rec).
+ M:'#info-'(element(1, Rec)).
module_get(Ms, Field, Rec) ->
M = module_has_rec(Ms, Rec),

0 comments on commit 3734fd1

Please sign in to comment.