Skip to content

Commit aa71246

Browse files
committed
RPC Docs: update generate.go to use new version scheme
1 parent e090689 commit aa71246

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/doc-gen/generate.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ func getVersion() string {
5151
m := f.(map[string]interface{})
5252

5353
numv := int(m["version"].(float64))
54-
v := fmt.Sprintf("%d.%d.%d", numv/1000000, (numv/10000)%100, (numv/100)%100)
54+
v := fmt.Sprintf("%d.%d.%d", (numv/10000)%100, (numv/100)%100, numv%100)
5555
return v
5656
}
5757

0 commit comments

Comments
 (0)