Skip to content

Commit

Permalink
docs: testing.rst function def missing colon
Browse files Browse the repository at this point in the history
  • Loading branch information
gutianci committed Mar 5, 2020
1 parent fd3fca2 commit ceed993
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/testing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ command line. ::

@app.cli.command('hello')
@click.option('--name', default='World')
def hello_command(name)
def hello_command(name):
click.echo(f'Hello, {name}!')

def test_hello():
Expand All @@ -447,7 +447,7 @@ This is useful for testing complex validation rules and custom types. ::

@app.cli.command('hello')
@click.option('--name', default='World', callback=upper)
def hello_command(name)
def hello_command(name):
click.echo(f'Hello, {name}!')

def test_hello_params():
Expand Down

0 comments on commit ceed993

Please sign in to comment.