Skip to content

Commit a838211

Browse files
authored
Merge pull request #418 from Arya-Gupta/main
Updated documentation for compound assignment operators to improve consistency
2 parents 6e3dda4 + 37b4c63 commit a838211

File tree

4 files changed

+15
-15
lines changed

4 files changed

+15
-15
lines changed

content/references/translations/en/processing/addassign.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,20 @@
33
"brief": "Combines addition with assignment",
44
"description": "Combines addition with assignment. The expression <b>a += b</b> is equivalent to <b>a = a + b</b>. \n",
55
"related": ["assign", "addition", "subtractassign"],
6-
"syntax": ["value1 += value2"],
6+
"syntax": ["var += value"],
77
"returns": "",
88
"type": "function",
99
"category": "math",
1010
"subcategory": "Operators",
1111
"parameters": [
1212
{
13-
"name": "value1",
13+
"name": "var",
1414
"description": "int or float",
1515
"type": []
1616
},
1717
{
18-
"name": "value2",
19-
"description": "any numerical value the same datatype as value1",
18+
"name": "value",
19+
"description": "any numerical value the same datatype as var",
2020
"type": []
2121
}
2222
]

content/references/translations/en/processing/divideassign.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,16 @@
33
"brief": "Combines division with assignment",
44
"description": "Combines division with assignment. The expression <b>a /= b</b> is equivalent to <b>a = a / b</b>. \n",
55
"related": ["divide", "assign"],
6-
"syntax": ["value1 /= value2"],
6+
"syntax": ["var /= value"],
77
"returns": "",
88
"type": "function",
99
"category": "math",
1010
"subcategory": "Operators",
1111
"parameters": [
12-
{ "name": "value1", "description": "int or float", "type": [] },
12+
{ "name": "var", "description": "int or float", "type": [] },
1313
{
14-
"name": "value2",
15-
"description": "any numerical value the same datatype as value1",
14+
"name": "value",
15+
"description": "any numerical value the same datatype as var",
1616
"type": []
1717
}
1818
]

content/references/translations/en/processing/multiplyassign.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,16 @@
33
"brief": "Combines multiplication with assignment",
44
"description": "Combines multiplication with assignment. The expression <b>a *= b</b> is equivalent to <b>a = a * b</b>. \n",
55
"related": ["multiply", "assign"],
6-
"syntax": ["value1 *= value2"],
6+
"syntax": ["var *= value"],
77
"returns": "",
88
"type": "function",
99
"category": "math",
1010
"subcategory": "Operators",
1111
"parameters": [
12-
{ "name": "value1", "description": "int or float", "type": [] },
12+
{ "name": "var", "description": "int or float", "type": [] },
1313
{
14-
"name": "value2",
15-
"description": "any numerical value the same datatype as value1",
14+
"name": "value",
15+
"description": "any numerical value the same datatype as var",
1616
"type": []
1717
}
1818
]

content/references/translations/en/processing/subtractassign.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
"brief": "Combines subtraction with assignment",
44
"description": "Combines subtraction with assignment. The expression <b>a -= b</b> is equivalent to <b>a = a - b</b>. \n",
55
"related": ["addassign", "minus"],
6-
"syntax": ["value1 -= value2"],
6+
"syntax": ["var -= value"],
77
"returns": "",
88
"type": "function",
99
"category": "math",
1010
"subcategory": "Operators",
1111
"parameters": [
12-
{ "name": "value1", "description": "int or float", "type": [] },
13-
{ "name": "value2", "description": "int or float", "type": [] }
12+
{ "name": "var", "description": "int or float", "type": [] },
13+
{ "name": "value", "description": "any numerical value the same datatype as var", "type": [] }
1414
]
1515
}

0 commit comments

Comments
 (0)