update comments about internal rep to match reality
This commit is contained in:
parent
eb7527e9a3
commit
08673b144e
2 changed files with 6 additions and 2 deletions
|
@ -132,7 +132,9 @@ indent_or_space(Config) ->
|
||||||
end.
|
end.
|
||||||
|
|
||||||
|
|
||||||
%% internal state is a stack of in progress objects/arrays
|
%% internal state is a stack and a config object
|
||||||
|
%% `{Stack, Config}`
|
||||||
|
%% the stack is a list of in progress objects/arrays
|
||||||
%% `[Current, Parent, Grandparent,...OriginalAncestor]`
|
%% `[Current, Parent, Grandparent,...OriginalAncestor]`
|
||||||
%% an object has the representation on the stack of
|
%% an object has the representation on the stack of
|
||||||
%% `{object, Object}`
|
%% `{object, Object}`
|
||||||
|
|
|
@ -101,7 +101,9 @@ format_key(Key, Config) ->
|
||||||
end.
|
end.
|
||||||
|
|
||||||
|
|
||||||
%% internal state is a stack of in progress objects/arrays
|
%% internal state is a stack and a config object
|
||||||
|
%% `{Stack, Config}`
|
||||||
|
%% the stack is a list of in progress objects/arrays
|
||||||
%% `[Current, Parent, Grandparent,...OriginalAncestor]`
|
%% `[Current, Parent, Grandparent,...OriginalAncestor]`
|
||||||
%% an object has the representation on the stack of
|
%% an object has the representation on the stack of
|
||||||
%% `{object, [{NthKey, NthValue}, {NMinus1Key, NthMinus1Value},...{FirstKey, FirstValue}]}`
|
%% `{object, [{NthKey, NthValue}, {NMinus1Key, NthMinus1Value},...{FirstKey, FirstValue}]}`
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue