From 1c877b33ea2c897f649c90b0ea3220fbf234a86e Mon Sep 17 00:00:00 2001 From: Dave Collins Date: Tue, 8 Jul 2014 10:04:03 -0500 Subject: [PATCH] Use magic syntax for godoc NewestSha example. --- README.md | 2 +- example_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 2318a5b6..c5a91e52 100644 --- a/README.md +++ b/README.md @@ -36,7 +36,7 @@ $ go get github.com/conformal/btcdb Demonstrates creating a new database and inserting the genesis block into it. * [NewestSha Example] - (http://godoc.org/github.com/conformal/btcdb#example-Db) + (http://godoc.org/github.com/conformal/btcdb#example-Db_newestSha) Demonstrates querying the database for the most recent best block height and hash. diff --git a/example_test.go b/example_test.go index c9e632fb..80622e4b 100644 --- a/example_test.go +++ b/example_test.go @@ -68,7 +68,7 @@ func exampleLoadDB() (btcdb.Db, error) { // This example demonstrates querying the database for the most recent best // block height and hash. -func ExampleDb() { +func ExampleDb_newestSha() { // Load a database for the purposes of this example and schedule it to // be closed on exit. See the CreateDB example for more details on what // this step is doing.