Skip to content
    Correct Params to Parens in Operators example

diff --git a/README.md b/README.md
index 77036b4..640eb97 100644
--- a/README.md
+++ b/README.md
@@ -190,7 +190,7 @@ fmt.Printf("%#v", c)
 ```

 ```go
-c := If(Params(Id("a").Op("||").Id("b")).Op("&&").Id("c")).Block()
+c := If(Parens(Id("a").Op("||").Id("b")).Op("&&").Id("c")).Block()
 fmt.Printf("%#v", c)
 // Output:
 // if (a || b) && c {
diff --git a/jen/examples_test.go b/jen/examples_test.go
index 7f65169..24f0d90 100644
--- a/jen/examples_test.go
+++ b/jen/examples_test.go
@@ -141,7 +141,7 @@ func ExampleFile_CgoPreamble_no_preamble_anon() {
 }

 func ExampleOp_complex_conditions() {
-	c := If(Params(Id("a").Op("||").Id("b")).Op("&&").Id("c")).Block()
+	c := If(Parens(Id("a").Op("||").Id("b")).Op("&&").Id("c")).Block()
 	fmt.Printf("%#v", c)
 	// Output: