We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bd7b8e9 commit 5f74b48Copy full SHA for 5f74b48
1 file changed
data/golang.json
@@ -373,7 +373,7 @@
373
{
374
"title": "পদ্ধতি ( Methods ) | রিসিভার ( Receivers )",
375
"items": [{
376
- "code": "type Vertex struct {"
+ "code": "type Devsonk struct {"
377
},
378
379
"code": "X, Y float64"
@@ -382,16 +382,16 @@
382
"code":"}"
383
384
385
- "code": "func (v Vertex) Abs() float64 {"
+ "code": "func (v Devsonk) Abs() float64 {"
386
387
388
+ "code": "return math.Sqrt(v.X * v.X + v.Y * v.Y)"
389
390
391
"code": "}"
392
393
394
- "code": "v := Vertex{1, 2}"
+ "code": "v := Devsonk{1, 2}"
395
396
397
"code": "v.Abs()"
0 commit comments