diff --git a/README.md b/README.md index b3e1cafc..6d076ad6 100644 --- a/README.md +++ b/README.md @@ -167,8 +167,8 @@ func InitializeScenario(ctx *godog.ScenarioContext) { Alternatively, you can also specify the keyword (Given, When, Then...) when creating the step definitions: ``` go func InitializeScenario(ctx *godog.ScenarioContext) { - ctx.Given(`^I eat (\d+)$`, iEat) - ctx.When(`^there are (\d+) godogs$`, thereAreGodogs) + ctx.When(`^I eat (\d+)$`, iEat) + ctx.Given(`^there are (\d+) godogs$`, thereAreGodogs) ctx.Then(`^there should be (\d+) remaining$`, thereShouldBeRemaining) } ```