Skip to content

Commit

Permalink
Merge pull request #447 from siamalekpour/patch-1
Browse files Browse the repository at this point in the history
Change order of `available_versions` in example
  • Loading branch information
etianen committed Aug 27, 2015
2 parents 99bd70e + 4dc4f9c commit 7fa753f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/diffs.rst
Original file line number Diff line number Diff line change
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 7fa753f

Please sign in to comment.