Use magic syntax for godoc NewestSha example.

This commit is contained in:
Dave Collins 2014-07-08 10:04:03 -05:00
parent 4422b14f63
commit 1c877b33ea
2 changed files with 2 additions and 2 deletions

View file

@ -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.

View file

@ -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.