This is an automated email from the ASF dual-hosted git repository.
dehowef pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/age-website.git
The following commit(s) were added to refs/heads/master by this push:
new d0cb51a0 Methods correction in the documentation. (#185)
d0cb51a0 is described below
commit d0cb51a07ec94d6dc2e82b6a6304ba2b5e33f976
Author: Talha Munir <[email protected]>
AuthorDate: Tue Sep 26 05:24:25 2023 +0500
Methods correction in the documentation. (#185)
* Adjusted the text *An interger* according to the previous styles
* Added the datatype of the returned value in LTrim function
* Corrected the definition of radian function and mentioned the datatype of
the returned value by radian and degree function i.e agtype float.
* Fixed the typing mistakes in the string functions and fixed the
definition of toupper function.
* Added the datatypes of the returned expression for every function.
Adjusted the variable names in the sample outputs shown, and fixed the typos
---
docs/functions/string_functions.md | 16 ++++++++--------
docs/functions/trigonometric_functions.md | 22 +++++++++++-----------
2 files changed, 19 insertions(+), 19 deletions(-)
diff --git a/docs/functions/string_functions.md
b/docs/functions/string_functions.md
index 0cabf554..676cc942 100644
--- a/docs/functions/string_functions.md
+++ b/docs/functions/string_functions.md
@@ -462,7 +462,7 @@ Query:
SELECT *
FROM cypher('graph_name', $$
RETURN rTrim(' hello ')
-$$) as (trimmed_str agtype);
+$$) as (right_trimmed_str agtype);
```
@@ -471,7 +471,7 @@ Result:
<table>
<tr>
- <td>trimmed_str
+ <td>right_trimmed_str
</td>
</tr>
<tr>
@@ -488,7 +488,7 @@ Result:
## lTrim
-lTrim() returns the original string with trailing whitespace removed.
+lTrim() returns the original string with leading whitespace removed.
Syntax: `lTrim(original)`
@@ -532,7 +532,7 @@ Query:
SELECT *
FROM cypher('graph_name', $$
RETURN lTrim(' hello ')
-$$) as (trimmed_str agtype);
+$$) as (left_trimmed_str agtype);
```
@@ -698,7 +698,7 @@ Result:
## toUpper
-toUpper() returns the original string in lowercase.
+toUpper() returns the original string in uppercase.
Syntax: `toUpper(original)`
@@ -812,7 +812,7 @@ Query:
SELECT *
FROM cypher('graph_name', $$
RETURN reverse("hello")
-$$) as (upper_str agtype);
+$$) as (reverse_str agtype);
```
@@ -821,7 +821,7 @@ Result:
<table>
<tr>
- <td>upper_str
+ <td>reverse_str
</td>
</tr>
<tr>
@@ -840,7 +840,7 @@ Result:
toString() converts an integer, float or boolean value to a string.
-Syntax:`toString(expression)`
+Syntax: `toString(expression)`
Returns:
diff --git a/docs/functions/trigonometric_functions.md
b/docs/functions/trigonometric_functions.md
index addb89b4..1ba12f44 100644
--- a/docs/functions/trigonometric_functions.md
+++ b/docs/functions/trigonometric_functions.md
@@ -177,7 +177,7 @@ Result:
<table>
<tr>
- <td>p
+ <td>pi
</td>
</tr>
<tr>
@@ -202,7 +202,7 @@ Returns:
```
-A Float.
+An agtype Float.
```
@@ -274,7 +274,7 @@ Returns:
```
-A Float.
+An agtype Float.
```
@@ -346,7 +346,7 @@ Returns:
```
-A Float.
+An agtype Float.
```
@@ -418,7 +418,7 @@ Returns:
```
-A Float.
+An agtype Float.
```
@@ -455,7 +455,7 @@ Query:
SELECT *
FROM cypher('graph_name', $$
RETURN asin(0.5)
-$$) as (s agtype);
+$$) as (arc_s agtype);
```
@@ -466,7 +466,7 @@ Results:
<table>
<tr>
- <td>s
+ <td>arc_s
</td>
</tr>
<tr>
@@ -491,7 +491,7 @@ Returns:
```
-A Float.
+An agtype Float.
```
@@ -564,7 +564,7 @@ Returns:
```
-A Float.
+An agtype Float.
```
@@ -604,7 +604,7 @@ $$) as (arc_t agtype);
```
-The arccosine of 0.5 is returned.
+The arctangent of 0.5 is returned.
Results:
@@ -636,7 +636,7 @@ Returns:
```
-A Float.
+An agtype Float.
```