summaryrefslogtreecommitdiff
path: root/strings
diff options
context:
space:
mode:
authorOtto Kekäläinen <otto@mariadb.org>2017-11-15 12:37:32 +0800
committerVicențiu-Marian Ciorbaru <cvicentiu@gmail.com>2018-01-12 16:49:02 +0200
commitc9c28bef3cb4cf21a6fee46f5ea3339867fbb07a (patch)
tree869b02d40aa5b158193cb74ce056ddd8343fa667 /strings
parent21239bb0fd2859968d3c42dcc56712a8978b6207 (diff)
downloadmariadb-git-c9c28bef3cb4cf21a6fee46f5ea3339867fbb07a.tar.gz
Minor spelling fixes in code comments, docs and output
This commit does not touch any variable names or any other actual code, and thus should not in any way affect how the code works.
Diffstat (limited to 'strings')
-rw-r--r--strings/ctype-uca.c6
-rw-r--r--strings/decimal.c2
2 files changed, 4 insertions, 4 deletions
diff --git a/strings/ctype-uca.c b/strings/ctype-uca.c
index e3ed531df93..4386b6aa432 100644
--- a/strings/ctype-uca.c
+++ b/strings/ctype-uca.c
@@ -34034,7 +34034,7 @@ apply_one_rule(MY_CHARSET_LOADER *loader,
/**
Check if collation rules are valid,
- i.e. characters are not outside of the collation suported range.
+ i.e. characters are not outside of the collation supported range.
*/
static int
check_rules(MY_CHARSET_LOADER *loader,
@@ -34170,7 +34170,7 @@ init_weight_level(MY_CHARSET_LOADER *loader, MY_COLL_RULES *rules,
memcpy(dst->weights, src->weights, npages * sizeof(uint16 *));
/*
- Calculate maximum lenghts for the pages which will be overwritten.
+ Calculate maximum lengths for the pages which will be overwritten.
Mark pages that will be otherwriten as NULL.
We'll allocate their own memory.
*/
@@ -34188,7 +34188,7 @@ init_weight_level(MY_CHARSET_LOADER *loader, MY_COLL_RULES *rules,
{
/*
Not an expansion and not a contraction.
- The page correspoding to r->curr[0] in "dst"
+ The page corresponding to r->curr[0] in "dst"
will need at least the same amount of weights
that r->base[0] has in "src".
*/
diff --git a/strings/decimal.c b/strings/decimal.c
index 7db5111fc84..d7fd9a5722b 100644
--- a/strings/decimal.c
+++ b/strings/decimal.c
@@ -1694,7 +1694,7 @@ done:
scale increment for '/'
NOTE
- returned valued may be larger than the actual buffer requred
+ returned valued may be larger than the actual buffer required
in the operation, as decimal_result_size, by design, operates on
precision/scale values only and not on the actual decimal number