mirror of
https://github.com/fluencelabs/tendermint
synced 2025-04-25 06:42:16 +00:00
example: fix func suffix
This commit is contained in:
parent
1775be1cd9
commit
32dec98c1c
@ -15,23 +15,21 @@
|
|||||||
package crypto_test
|
package crypto_test
|
||||||
|
|
||||||
import (
|
import (
|
||||||
//"fmt"
|
"fmt"
|
||||||
|
|
||||||
//"github.com/tendermint/go-crypto"
|
"github.com/tendermint/go-crypto"
|
||||||
)
|
)
|
||||||
|
|
||||||
/*
|
func ExampleSha256() {
|
||||||
func example_Sha256() {
|
|
||||||
sum := crypto.Sha256([]byte("This is Tendermint"))
|
sum := crypto.Sha256([]byte("This is Tendermint"))
|
||||||
fmt.Printf("%x\n", sum)
|
fmt.Printf("%x\n", sum)
|
||||||
// Output:
|
// Output:
|
||||||
// f91afb642f3d1c87c17eb01aae5cb65c242dfdbe7cf1066cc260f4ce5d33b94e
|
// f91afb642f3d1c87c17eb01aae5cb65c242dfdbe7cf1066cc260f4ce5d33b94e
|
||||||
}
|
}
|
||||||
|
|
||||||
func example_Ripemd160() {
|
func ExampleRipemd160() {
|
||||||
sum := crypto.Ripemd160([]byte("This is Tendermint"))
|
sum := crypto.Ripemd160([]byte("This is Tendermint"))
|
||||||
fmt.Printf("%x\n", sum)
|
fmt.Printf("%x\n", sum)
|
||||||
// Output:
|
// Output:
|
||||||
// 051e22663e8f0fd2f2302f1210f954adff009005
|
// 051e22663e8f0fd2f2302f1210f954adff009005
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user