Skip to content

Fix typos in implementation#1

Open
OleksandrMizov wants to merge 2 commits intoHowProgrammingWorks:masterfrom
OleksandrMizov:om-fix-typos
Open

Fix typos in implementation#1
OleksandrMizov wants to merge 2 commits intoHowProgrammingWorks:masterfrom
OleksandrMizov:om-fix-typos

Conversation

@OleksandrMizov
Copy link

Changes:

  • Fix typo in schema definition.
  • Fix typo in example of CRDT initialization

set0.add('b');
set0.remove('a');
console.log({ id0: set0.value });
console.log(JSON.stringify({ id0: { added: set0.added, removed: set0.removed } }));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could be better to instead do

Suggested change
console.log(JSON.stringify({ id0: { added: set0.added, removed: set0.removed } }));
console.dir({ id0: { added: set0.added, removed: set0.removed } }, { depth: null });

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants