Fix typos

This commit is contained in:
Stein Magnus Jodal 2014-01-10 00:04:06 +01:00
parent 6afc85ec72
commit 7897fe7bac
2 changed files with 7 additions and 7 deletions

View File

@ -42,13 +42,13 @@ class LibraryController(object):
Returns a list of :class:`mopidy.models.Ref` objects for the
directories and tracks at the given ``path``.
The :class:`~mopidy.models.Ref` objects representing tracks keeps the
The :class:`~mopidy.models.Ref` objects representing tracks keep the
track's original URI. A matching pair of objects can look like this::
Track(uri='dummy:/foo.mp3', name='foo', artists=..., album=...)
Ref.track(uri='dummy:/foo.mp3', name='foo')
The :class:`~mopidy.models.Ref` objects representing directories has
The :class:`~mopidy.models.Ref` objects representing directories have
plain paths, not including any URI schema. For example, the dummy
library's ``/bar`` directory is returned like this::

View File

@ -160,19 +160,19 @@ class Ref(ImmutableObject):
#: "directory". Read-only.
type = None
#: Constant used for comparision with the :attr:`type` field.
#: Constant used for comparison with the :attr:`type` field.
ALBUM = 'album'
#: Constant used for comparision with the :attr:`type` field.
#: Constant used for comparison with the :attr:`type` field.
ARTIST = 'artist'
#: Constant used for comparision with the :attr:`type` field.
#: Constant used for comparison with the :attr:`type` field.
DIRECTORY = 'directory'
#: Constant used for comparision with the :attr:`type` field.
#: Constant used for comparison with the :attr:`type` field.
PLAYLIST = 'playlist'
#: Constant used for comparision with the :attr:`type` field.
#: Constant used for comparison with the :attr:`type` field.
TRACK = 'track'
@classmethod