diff --git a/doc_test.go b/doc_test.go
index 4dce3a6a8b5786d1b355cead26cbb7dedebd59ef..14bcdc12fdb9fc81acbc1ac5c12a640c1efe8d52 100644
--- a/doc_test.go
+++ b/doc_test.go
@@ -50,7 +50,11 @@ func Example() {
 }
 
 // This example displays an element in a variety of formats.
-func ExampleElement_Format(element *pbc.Element) {
+func ExampleElement_Format() {
+	var element *pbc.Element
+
+	// ...populate element...
+
 	fmt.Printf("%v", element)    // Print in PBC format
 	fmt.Printf("%s", element)    // Same as above
 	fmt.Printf("%36v", element)  // Print in PBC format, base 36
diff --git a/utils.go b/utils.go
index d41b36575c788dfdcbcdef5ab41e79745cdc2487..1af0252d79d073e85a79b18ed49b342091a785e8 100644
--- a/utils.go
+++ b/utils.go
@@ -81,8 +81,8 @@ func SetRandomProvider(provider RandomSource) {
 
 //export goGenerateRandom
 func goGenerateRandom(out, limit unsafe.Pointer) {
-	outMpz := &mpz{i: *(*C.mpz_t)(out) }
-	limitMpz := &mpz{i: *(*C.mpz_t)(limit) }
+	outMpz := &mpz{i: *(*C.mpz_t)(out)}
+	limitMpz := &mpz{i: *(*C.mpz_t)(limit)}
 	r := randomProvider.Rand(mpz2big(limitMpz))
 	big2thisMpz(r, outMpz)
 }