[gjs: 1/3] *: Fix spelling mistakes found by codespell




commit 0b737554659e736a91c6b5685ed6d131a73a3757
Author: Björn Daase <bjoern daase net>
Date:   Sun Nov 29 19:38:14 2020 +0100

    *: Fix spelling mistakes found by codespell

 CONTRIBUTING.md                     | 2 +-
 README.MSVC.md                      | 2 +-
 doc/Logging.md                      | 6 +++---
 doc/Modules.md                      | 2 +-
 doc/cairo.md                        | 4 ++--
 gi/arg.cpp                          | 2 +-
 gjs/importer.cpp                    | 2 +-
 gjs/jsapi-dynamic-class.cpp         | 4 ++--
 installed-tests/js/jasmine.js       | 2 +-
 modules/core/_format.js             | 2 +-
 modules/script/tweener/equations.js | 8 ++++----
 modules/script/tweener/tweener.js   | 4 ++--
 tools/apply-format                  | 2 +-
 13 files changed, 21 insertions(+), 21 deletions(-)
---
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index d34e3b8f..fee21ad8 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -42,7 +42,7 @@ accepted.
 Your responsibilities as a contributor:
 
 - Be welcoming and encouraging to newcomers.
-- Conduct yourself professionally; rude, abusive, harrassing, or
+- Conduct yourself professionally; rude, abusive, harassing, or
   discriminatory behaviour is not tolerated.
 - For any major changes and enhancements you want to make, first create
   an issue in the [bugtracker], discuss things transparently, and get
diff --git a/README.MSVC.md b/README.MSVC.md
index f005daf7..c6fd67d7 100644
--- a/README.MSVC.md
+++ b/README.MSVC.md
@@ -66,7 +66,7 @@ JS_STANDALONE=1 $(mozjs_srcroot)/js/src/configure --enable-nspr-build --host=i68
 
 Notice that "JS_STANDALONE=1" and "--disable-jemalloc" are absolutely required,
 otherwise GJS will not build/run correctly.  If your GJS build crashes upon
-launch, use Depedency Walker to ensure that mozjs-78.dll does not depend on
+launch, use Dependency Walker to ensure that mozjs-78.dll does not depend on
 mozglue.dll!  If it does, or if GJS fails to link with missing arena_malloc() and
 friends symbols, you have built SpiderMoney incorrectly and will need to rebuild
 SpiderMonkey (with the build options as noted above) and retry the build.
diff --git a/doc/Logging.md b/doc/Logging.md
index 9e58981d..6a01defc 100644
--- a/doc/Logging.md
+++ b/doc/Logging.md
@@ -1,4 +1,4 @@
-GJS includes a number of built-in funtions for logging and aiding debugging, in
+GJS includes a number of built-in functions for logging and aiding debugging, in
 addition to those available as a part of the GNOME APIs.
 
 # Built-in Functions
@@ -37,7 +37,7 @@ gjs> try {
 ....     logError(e, 'FooError');
 .... }
 
-(gjs:28115): Gjs-WARNING **: 19:28:13.334: JS ERROR: FooError: Error: Some error occured
+(gjs:28115): Gjs-WARNING **: 19:28:13.334: JS ERROR: FooError: Error: Some error occurred
 @typein:2:16
 @<stdin>:1:34
 ```
@@ -45,7 +45,7 @@ gjs> try {
 
 ### print() & printerr()
 
-`print()` takes any number of string (or coercable) arguments, joins them with a
+`print()` takes any number of string (or coercible) arguments, joins them with a
 space and appends a newline (`\n`). The resulting message will be printed
 directly to `stdout` of the current process using `g_print()`.
 
diff --git a/doc/Modules.md b/doc/Modules.md
index e346566a..dbc2b91a 100644
--- a/doc/Modules.md
+++ b/doc/Modules.md
@@ -298,7 +298,7 @@ with the property name, picking the latest version if there is no entry for it i
 ## More about **imports**
 
 **imports** is a global object that you can use to import any js file or GObject
-Introspection lib as moudule, there are 4 special properties of **imports**:
+Introspection lib as module, there are 4 special properties of **imports**:
 
  * `searchPath`
 
diff --git a/doc/cairo.md b/doc/cairo.md
index c83b3709..6f83dbbe 100644
--- a/doc/cairo.md
+++ b/doc/cairo.md
@@ -12,7 +12,7 @@ Methods are studlyCaps, similar to other JavaScript apis, eg
 `cairo_move_to` is wrapped to `Cairo.Context.moveTo()`
 `cairo_surface_write_to_png` to `Cairo.Context.writeToPNG()`.
 
-Abbrevations such as RGB, RGBA, PNG, PDF, SVG are always
+Abbreviations such as RGB, RGBA, PNG, PDF, SVG are always
 upper-case.
 
 Enums are set in the cairo namespace, the enum names are capitalized:
@@ -78,7 +78,7 @@ let pattern = new Cairo.SolidPattern.createRGB(0, 0, 0);
 let pattern = new Cairo.SolidPattern.createRGBA(0, 0, 0, 0);
 ```
 TODO:
-* context: wrap the remaning methods
+* context: wrap the remaining methods
 * surface methods
 * image surface methods
 * matrix
diff --git a/gi/arg.cpp b/gi/arg.cpp
index 5d8954f9..e565437c 100644
--- a/gi/arg.cpp
+++ b/gi/arg.cpp
@@ -148,7 +148,7 @@ static bool _gjs_enum_value_is_valid(JSContext* context, GIEnumInfo* enum_info,
 }
 
 /* Check if an argument of the given needs to be released if we created it
- * from a JS value to pass it into a function and aren't transfering ownership.
+ * from a JS value to pass it into a function and aren't transferring ownership.
  */
 [[nodiscard]] static bool type_needs_release(GITypeInfo* type_info,
                                              GITypeTag type_tag) {
diff --git a/gjs/importer.cpp b/gjs/importer.cpp
index 6cdfd11d..2d99ebcf 100644
--- a/gjs/importer.cpp
+++ b/gjs/importer.cpp
@@ -198,7 +198,7 @@ static bool import_directory(JSContext* context, JS::HandleObject obj,
 }
 
 /* Make the property we set in gjs_module_import() permanent;
- * we do this after the import succesfully completes.
+ * we do this after the import successfully completes.
  */
 GJS_JSAPI_RETURN_CONVENTION
 static bool
diff --git a/gjs/jsapi-dynamic-class.cpp b/gjs/jsapi-dynamic-class.cpp
index d3fab1d5..fa75a436 100644
--- a/gjs/jsapi-dynamic-class.cpp
+++ b/gjs/jsapi-dynamic-class.cpp
@@ -51,10 +51,10 @@ bool gjs_init_class_dynamic(JSContext* context, JS::HandleObject in_object,
        use JS_InitClass for static classes like Math */
     g_assert (constructor_native != NULL);
 
-    /* Class initalization consists of five parts:
+    /* Class initialization consists of five parts:
        - building a prototype
        - defining prototype properties and functions
-       - building a constructor and definining it on the right object
+       - building a constructor and defining it on the right object
        - defining constructor properties and functions
        - linking the constructor and the prototype, so that
          JS_NewObjectForConstructor can find it
diff --git a/installed-tests/js/jasmine.js b/installed-tests/js/jasmine.js
index 25a5b46e..35bcf39c 100644
--- a/installed-tests/js/jasmine.js
+++ b/installed-tests/js/jasmine.js
@@ -471,7 +471,7 @@ getJasmineRequireObj().Order = function() {
     }
 
     // Bob Jenkins One-at-a-Time Hash algorithm is a non-cryptographic hash function
-    // used to get a different output when the key changes slighly.
+    // used to get a different output when the key changes slightly.
     // We use your return to sort the children randomly in a consistent way when
     // used in conjunction with a seed
 
diff --git a/modules/core/_format.js b/modules/core/_format.js
index 9c005b45..47e52716 100644
--- a/modules/core/_format.js
+++ b/modules/core/_format.js
@@ -16,7 +16,7 @@ function vprintf(string, args) {
         let hasAlternativeIntFlag = flagsGroup &&
             flagsGroup.indexOf('I') !== -1;
         if (hasAlternativeIntFlag && genericGroup !== 'd')
-            throw new Error("Alternative output digits can only be specfied for 'd'");
+            throw new Error("Alternative output digits can only be specified for 'd'");
 
         let pos = parseInt(posGroup, 10) || 0;
         if (!usePos && i === 0)
diff --git a/modules/script/tweener/equations.js b/modules/script/tweener/equations.js
index c2003c87..9bac7a5d 100644
--- a/modules/script/tweener/equations.js
+++ b/modules/script/tweener/equations.js
@@ -547,7 +547,7 @@ function easeOutInElastic(t, b, c, d, pParams) {
  * @param b             Starting value.
  * @param c             Change needed in value.
  * @param d             Expected easing duration (in frames or seconds).
- * @param s             Overshoot ammount: higher s means greater overshoot (0 produces cubic easing with no 
overshoot, and the default value of 1.70158 produces an overshoot of 10 percent).
+ * @param s             Overshoot amount: higher s means greater overshoot (0 produces cubic easing with no 
overshoot, and the default value of 1.70158 produces an overshoot of 10 percent).
  * @return              The correct value.
  */
 function easeInBack(t, b, c, d, pParams) {
@@ -562,7 +562,7 @@ function easeInBack(t, b, c, d, pParams) {
  * @param b             Starting value.
  * @param c             Change needed in value.
  * @param d             Expected easing duration (in frames or seconds).
- * @param s             Overshoot ammount: higher s means greater overshoot (0 produces cubic easing with no 
overshoot, and the default value of 1.70158 produces an overshoot of 10 percent).
+ * @param s             Overshoot amount: higher s means greater overshoot (0 produces cubic easing with no 
overshoot, and the default value of 1.70158 produces an overshoot of 10 percent).
  * @return              The correct value.
  */
 function easeOutBack(t, b, c, d, pParams) {
@@ -577,7 +577,7 @@ function easeOutBack(t, b, c, d, pParams) {
  * @param b             Starting value.
  * @param c             Change needed in value.
  * @param d             Expected easing duration (in frames or seconds).
- * @param s             Overshoot ammount: higher s means greater overshoot (0 produces cubic easing with no 
overshoot, and the default value of 1.70158 produces an overshoot of 10 percent).
+ * @param s             Overshoot amount: higher s means greater overshoot (0 produces cubic easing with no 
overshoot, and the default value of 1.70158 produces an overshoot of 10 percent).
  * @return              The correct value.
  */
 function easeInOutBack(t, b, c, d, pParams) {
@@ -594,7 +594,7 @@ function easeInOutBack(t, b, c, d, pParams) {
  * @param b             Starting value.
  * @param c             Change needed in value.
  * @param d             Expected easing duration (in frames or seconds).
- * @param s             Overshoot ammount: higher s means greater overshoot (0 produces cubic easing with no 
overshoot, and the default value of 1.70158 produces an overshoot of 10 percent).
+ * @param s             Overshoot amount: higher s means greater overshoot (0 produces cubic easing with no 
overshoot, and the default value of 1.70158 produces an overshoot of 10 percent).
  * @return              The correct value.
  */
 function easeOutInBack(t, b, c, d, pParams) {
diff --git a/modules/script/tweener/tweener.js b/modules/script/tweener/tweener.js
index cd513aaf..a964c659 100644
--- a/modules/script/tweener/tweener.js
+++ b/modules/script/tweener/tweener.js
@@ -601,7 +601,7 @@ function addCaller(target, tweeningParameters) {
 function _getNumberOfProperties(object) {
     var totalProperties = 0;
 
-    // the following line is disabled becasue eslint was picking up the following error: the variable name 
is defined but never used, however since it is required to search the object it is used and we'll allow the 
line to be ignored to get rid of the error message
+    // the following line is disabled because eslint was picking up the following error: the variable name 
is defined but never used, however since it is required to search the object it is used and we'll allow the 
line to be ignored to get rid of the error message
     /* eslint-disable-next-line */
     for (let name in object) {
         totalProperties++;
@@ -720,7 +720,7 @@ function _affectTweens(affectFunction, scope, properties) {
                     affectFunction(i);
                     affected = true;
                 } else {
-                    // The properties are mixed, so split the tween and affect only certian specific
+                    // The properties are mixed, so split the tween and affect only certain specific
                     // properties
                     var splicedTweenIndex = _splitTweens(i, affectedProperties);
                     affectFunction(splicedTweenIndex);
diff --git a/tools/apply-format b/tools/apply-format
index 6e3af630..a14b76e1 100755
--- a/tools/apply-format
+++ b/tools/apply-format
@@ -295,7 +295,7 @@ else # Diff-only.
     declare git_args=(git diff -U0 --no-color)
     [ "$staged" = true ] && git_args+=("--staged")
 
-    # $format_diff may contain a command ("python") and the script to excute, so we
+    # $format_diff may contain a command ("python") and the script to execute, so we
     # need to split it.
     read -r -a format_diff_args <<< "$format_diff"
     [ "$in_place" = true ] && format_diff_args+=("-i")


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]