Skip to content

Commit

Permalink
Cosmetics
Browse files Browse the repository at this point in the history
  • Loading branch information
TaurusOlson committed Mar 4, 2016
1 parent f258015 commit 33a77bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fntools/fntools.py
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ def pipe_each(coll, *fns):
def shift(func, *args, **kwargs):
"""This function is basically a beefed up lambda x: func(x, *args, **kwargs)
`shift` comes in handy when it is used in a pipeline with a function that
:func:`shift` comes in handy when it is used in a pipeline with a function that
needs the passed value as its first argument.
:param func: a function
Expand Down Expand Up @@ -468,7 +468,7 @@ def pluck(record, *keys, **kwargs):
>>> pluck(d, 'name', 'color')
{'color': 'blue', 'name': 'Lancelot'}
The keyword 'default' allows to replace a `None` value::
The keyword 'default' allows to replace a ``None`` value::
>>> d = {'year': 2014, 'movie': 'Bilbo'}
>>> pluck(d, 'year', 'movie', 'nb_aliens', default=0)
Expand Down

0 comments on commit 33a77bd

Please sign in to comment.