git.iko.soy/rowtype-yoga/purescript-native
on golang help sign in
Update syntax.rst
3ad52a4Phil Freeman
docs/source/syntax.rst+34−34
@@ -22,41 +22,41 @@ Operators
22
22
23PureScript supports the following unary operators (in precedence order):
23PureScript supports the following unary operators (in precedence order):
24
24
25−= =======================
25+== =======================
26− Meaning
26+ Meaning
27−= =======================
27+== =======================
28−- Numeric negation
28+\- Numeric negation
29−! Boolean negation
29+! Boolean negation
30−~ Binary negation
30+~ Binary negation
31−+ Unary plus (numeric)
31+\+ Unary plus (numeric)
32−= =======================
32+== =======================
33
33
34and the following binary operators (in precedence order):
34and the following binary operators (in precedence order):
35
35
36−=== =====================
36+==== =====================
37− Meaning
37+ Meaning
38−=== =====================
38+==== =====================
39−+ Numeric addition
39+\+ Numeric addition
40−- Numeric subtraction
40+\- Numeric subtraction
41−* Numeric multiplication
41+\* Numeric multiplication
42−/ Numeric division
42+/ Numeric division
43−% Numeric modulus
43+% Numeric modulus
44−== Equality check
44+== Equality check
45−!= Inequality check
45+!= Inequality check
46−< Less than
46+< Less than
47−<= Less than or equal
47+<= Less than or equal
48−> Greater than
48+> Greater than
49−>= Greater than or equal
49+>= Greater than or equal
50−&& Boolean AND
50+&& Boolean AND
51−|| Boolean OR
51+|| Boolean OR
52−& Binary AND
52+& Binary AND
53−| Binary OR
53+\| Binary OR
54−^ Binary XOR
54+^ Binary XOR
55−<< Shift Left
55+<< Shift Left
56−>> Shift Right
56+>> Shift Right
57−>>> Zero-Fill Shift Right
57+\>>> Zero-Fill Shift Right
58−++ String concatenation
58+++ String concatenation
59−=== =====================
59+==== =====================
60
60
61Literal Values
61Literal Values
62--------------
62--------------
@@ -172,6 +172,6 @@ For example, the following function increments the `foo` property on its argumen
172
172
173The generated Javascript assumes the existence of a method called `Object.extend` such that `Object.extend(o, p)` takes an object `o` and generates a shallow copy of `o` including the properties of `p`. A simple JQuery implementation of this specification is::
173The generated Javascript assumes the existence of a method called `Object.extend` such that `Object.extend(o, p)` takes an object `o` and generates a shallow copy of `o` including the properties of `p`. A simple JQuery implementation of this specification is::
174
174
175−Object.prototype.extend = function(o, p) {
175+ Object.prototype.extend = function(o, p) {
176 return $.extend({}, o, p);
176 return $.extend({}, o, p);
177−};
177+ };