Closed Bug 1259312 Opened 9 years ago Closed 9 years ago

Typo on Array.prototype.splice() pagae in examples section, line 27.

Categories

(Developer Documentation Graveyard :: JavaScript, defect, P5)

All
Other
defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: an0o0nym, Assigned: fs)

References

()

Details

:: Developer Documentation Request Request Type: Correction Gecko Version: unspecified Technical Contact: :: Details When I was reading through the documentation, I found a typo in the examples section for Array.prototype.splice(), line 27. Before I decided to file a report, I double confirmed that with on of the members on the mozilla IRC channel.
(In reply to an0o0nyme from comment #0) > :: Developer Documentation Request > > Request Type: Correction > Gecko Version: unspecified > Technical Contact: > > :: Details > > When I was reading through the documentation, I found a typo in the examples > section for Array.prototype.splice(), line 27. Before I decided to file a > report, I double confirmed that with on of the members on the mozilla IRC > channel. What exactly is the typo? I think I know, but in order to be sure I fix the problem you found, please let me know what you see wrong. Thanks!
Assignee: nobody → eshepherd
Comment on line 27 in the example section supposed to be like this: // removes 2 elements from index 2 instead of this: // removes 2 elements from index 3
Someone changed the example recently, but didn't update the comment in the code: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/splice$compare?locale=en-US&to=1005429&from=979889 So, your suggestion is correct. I edited the doc.
Assignee: eshepherd → fscholz
Status: UNCONFIRMED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.