Skip to content
This repository has been archived by the owner on Mar 18, 2019. It is now read-only.

Commit

Permalink
Merge pull request #132 from Stranger6667/spelling-fix
Browse files Browse the repository at this point in the history
Fix typos
  • Loading branch information
tomchristie authored Apr 27, 2017
2 parents 0e841ce + 82afc12 commit 131f94b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion coreapi/document.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def _key_sorting(item):

# The field class, as used by Link objects:

# NOTE: 'type', 'description' and 'examaple' are now deprecated,
# NOTE: 'type', 'description' and 'example' are now deprecated,
# in favor of 'schema'.
Field = namedtuple('Field', ['name', 'required', 'location', 'schema', 'description', 'type', 'example'])
Field.__new__.__defaults__ = (False, '', None, None, None, None)
Expand Down
2 changes: 1 addition & 1 deletion coreapi/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ def negotiate_encoder(encoders, accept=None):
raise exceptions.NoCodecAvailable(msg)


# Validation utilities. Used to ensure that we get consitent validation
# Validation utilities. Used to ensure that we get consistent validation
# exceptions when invalid types are passed as a parameter, rather than
# an exception occuring when the request is made.

Expand Down
4 changes: 2 additions & 2 deletions runtests
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ def flake8_main(args):


def report_coverage(cov, fail_if_not_100=False):
precent_covered = cov.report(
percent_covered = cov.report(
file=NullFile(), **COVERAGE_OPTIONS
)
if precent_covered == 100:
if percent_covered == 100:
print('100% coverage')
return
if fail_if_not_100:
Expand Down
2 changes: 1 addition & 1 deletion tests/test_document.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def error():

def _dedent(string):
"""
Convience function for dedenting multiline strings,
Convenience function for dedenting multiline strings,
for string comparison purposes.
"""
lines = string.splitlines()
Expand Down

0 comments on commit 131f94b

Please sign in to comment.