Skip to content

Commit 10754b9

Browse files
author
Sabbir Ahmed
authored
Merge pull request #800 from irezaul/patch-6
Update golang.json
2 parents bd7b8e9 + 5f74b48 commit 10754b9

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

data/golang.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@
373373
{
374374
"title": "পদ্ধতি ( Methods ) | রিসিভার ( Receivers )",
375375
"items": [{
376-
"code": "type Vertex struct {"
376+
"code": "type Devsonk struct {"
377377
},
378378
{
379379
"code": "X, Y float64"
@@ -382,16 +382,16 @@
382382
"code":"}"
383383
},
384384
{
385-
"code": "func (v Vertex) Abs() float64 {"
385+
"code": "func (v Devsonk) Abs() float64 {"
386386
},
387387
{
388-
"code": "func (v Vertex) Abs() float64 {"
388+
"code": "return math.Sqrt(v.X * v.X + v.Y * v.Y)"
389389
},
390390
{
391391
"code": "}"
392392
},
393393
{
394-
"code": "v := Vertex{1, 2}"
394+
"code": "v := Devsonk{1, 2}"
395395
},
396396
{
397397
"code": "v.Abs()"

0 commit comments

Comments
 (0)