Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-merkledag
Commits
1f96eae2
Commit
1f96eae2
authored
Apr 20, 2018
by
Whyrusleeping
Committed by
GitHub
Apr 20, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4835 from ipfs/fix/typos
misc: Fix a few typos
parents
ecd4b16f
795a29d5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
raw.go
raw.go
+1
-2
No files found.
raw.go
View file @
1f96eae2
...
@@ -14,8 +14,7 @@ type RawNode struct {
...
@@ -14,8 +14,7 @@ type RawNode struct {
blocks
.
Block
blocks
.
Block
}
}
// NewRawNode creates a RawNode using the default sha2-256 hash
// NewRawNode creates a RawNode using the default sha2-256 hash function.
// funcition.
func
NewRawNode
(
data
[]
byte
)
*
RawNode
{
func
NewRawNode
(
data
[]
byte
)
*
RawNode
{
h
:=
u
.
Hash
(
data
)
h
:=
u
.
Hash
(
data
)
c
:=
cid
.
NewCidV1
(
cid
.
Raw
,
h
)
c
:=
cid
.
NewCidV1
(
cid
.
Raw
,
h
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment