Opened 16 years ago

Closed 16 years ago

#8480 closed (fixed)

Minor error in Database Api document reverse() function explanation seq[:-5] should be seq[-5:]

Reported by: pierreR Owned by: nobody
Component: Documentation Version:
Severity: Keywords: reverse
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

In Database Api document (http://www.djangoproject.com/documentation/db-api/):

"reverse()

New in Django development version

Use the reverse()......

seq[:-5], would see the fifth-last item first...."

seq[:-5] should be seq[-5:]

Attachments (1)

8440.typo.diff (715 bytes ) - added by Julien Phalip 16 years ago.

Download all attachments as: .zip

Change History (4)

comment:1 by Julien Phalip, 16 years ago

Triage Stage: UnreviewedAccepted

Thanks for the report. In the future, when you spot such a trivial bug/typo, please submit a patch as well, as it is much quicker for the core devs to check it in ;)

by Julien Phalip, 16 years ago

Attachment: 8440.typo.diff added

comment:2 by Julien Phalip, 16 years ago

Hmmmm... well, in this case it might just be as easy for the committers to modify the file themselves, so forget about what I just said ;)

comment:3 by simon, 16 years ago

Resolution: fixed
Status: newclosed

Fixed in [9005]

Note: See TracTickets for help on using tickets.
Back to Top