zenika-open-source / immutadot

immutadot is a JavaScript library to deal with nested immutable structures.
https://immutadot.zenika.com
MIT License
178 stars 5 forks source link

:pencil2: Fix typo in the getting started doc #314

Closed ClementVanPeuter closed 5 years ago

ClementVanPeuter commented 5 years ago

Prerequisites

Description

Fixing a typo in the getting started doc.

Before

 const newAnimals = {
  ...animals,
  weasels: {
    ...animals.weasels,
    lutraLutra: {
      ...animals.weasels.otter,
      name: 'Lutra lutra',
    },
  },
}

After

const newAnimals = {
  ...animals,
  weasels: {
    ...animals.weasels,
    otter: {
      ...animals.weasels.lutraLutra,
      name: 'Lutra lutra',
    },
  },
}
frinyvonnick commented 5 years ago

This should be 😄

const newAnimals = {
  ...animals,
  weasels: {
    ...animals.weasels,
    lutraLutra: {
      ...animals.weasels.lutraLutra,
      name: 'Lutra lutra',
    },
  },
}

Edit: @nlepage has been faster 👍