Skip to content

Commit 2ac0ee8

Browse files
jenwebersivakumar-kailasam
authored andcommitted
Updating off by 1 error, ported from emberjs/guides#2325
1 parent 2598227 commit 2ac0ee8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

guides/v3.1.0/object-model/computed-properties-and-aggregate-data.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ import EmberObject, { computed } from '@ember/object';
205205
const Hamster = EmberObject.extend({
206206
excitingChores: computed('chores.[]', function() {
207207
return this.get('chores').map(function(chore, index) {
208-
return `CHORE ${index}: ${chore.toUpperCase()}!`;
208+
return `CHORE ${index + 1}: ${chore.toUpperCase()}!`;
209209
});
210210
})
211211
});
@@ -227,7 +227,7 @@ import { map } from '@ember/object/computed';
227227

228228
const Hamster = EmberObject.extend({
229229
excitingChores: map('chores', function(chore, index) {
230-
return `CHORE ${index}: ${chore.toUpperCase()}!`;
230+
return `CHORE ${index + 1}: ${chore.toUpperCase()}!`;
231231
})
232232
});
233233
```

0 commit comments

Comments
 (0)