Skip to content

Commit

Permalink
Change order of available_versions in example
Browse files Browse the repository at this point in the history
`reversion.get_for_object()` should return versions in a reversed-chronological order. So, `available_versions[0]` would reflect the latest change.
  • Loading branch information
siamalekpour committed Aug 26, 2015
1 parent 99bd70e commit 4dc4f9c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/diffs.rst
Expand Up @@ -24,8 +24,8 @@ First of all, you need to use the :ref:`low level API <api>` to retrieve the ver
# Get the two versions to compare.
available_versions = reversion.get_for_object(page)

old_version = available_versions[0]
new_version = available_versions[1]
new_version = available_versions[0]
old_version = available_versions[1]

Now, in order to generate a text patch::

Expand Down

0 comments on commit 4dc4f9c

Please sign in to comment.