mirror of
https://github.com/LBRYFoundation/lbcd.git
synced 2025-08-31 01:11:30 +00:00
Use magic syntax for godoc NewestSha example.
This commit is contained in:
parent
4422b14f63
commit
1c877b33ea
2 changed files with 2 additions and 2 deletions
|
@ -36,7 +36,7 @@ $ go get github.com/conformal/btcdb
|
||||||
Demonstrates creating a new database and inserting the genesis block into it.
|
Demonstrates creating a new database and inserting the genesis block into it.
|
||||||
|
|
||||||
* [NewestSha Example]
|
* [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
|
Demonstrates querying the database for the most recent best block height and
|
||||||
hash.
|
hash.
|
||||||
|
|
||||||
|
|
|
@ -68,7 +68,7 @@ func exampleLoadDB() (btcdb.Db, error) {
|
||||||
|
|
||||||
// This example demonstrates querying the database for the most recent best
|
// This example demonstrates querying the database for the most recent best
|
||||||
// block height and hash.
|
// block height and hash.
|
||||||
func ExampleDb() {
|
func ExampleDb_newestSha() {
|
||||||
// Load a database for the purposes of this example and schedule it to
|
// 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
|
// be closed on exit. See the CreateDB example for more details on what
|
||||||
// this step is doing.
|
// this step is doing.
|
||||||
|
|
Loading…
Add table
Reference in a new issue