From d94a88e5951250a23b8be6e1da6b41d01fc7541e Mon Sep 17 00:00:00 2001 From: Owen Cummings Date: Fri, 17 Mar 2023 09:23:16 -0700 Subject: [PATCH] Fix README example --- README.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index b64675e..21651fd 100644 --- a/README.md +++ b/README.md @@ -511,10 +511,9 @@ When the experiment runs, all candidate behaviors are tested and each candidate Define the candidates with named `try` blocks, omit a `use`, and pass a candidate name to `run`: ```ruby -experiment = MyExperiment.new("various-ways") do |e| - e.try("first-way") { ... } - e.try("second-way") { ... } -end +experiment = MyExperiment.new("various-ways") +experiment.try("first-way") { ... } +experiment.try("second-way") { ... } experiment.run("second-way") ```