From 18fff725afb744f4d081058a75a233cd830cefd4 Mon Sep 17 00:00:00 2001 From: Dimitris Apostolou Date: Thu, 10 Feb 2022 17:44:21 +0200 Subject: [PATCH] Fix typos --- google-c-style.el | 2 +- javascriptguide.xml | 2 +- jsguide.html | 2 +- lispguide.xml | 6 +++--- styleguide.xsl | 2 +- vimscriptfull.xml | 4 ++-- vimscriptguide.xml | 2 +- 7 files changed, 10 insertions(+), 10 deletions(-) diff --git a/google-c-style.el b/google-c-style.el index 9bb12c6..06a44e9 100644 --- a/google-c-style.el +++ b/google-c-style.el @@ -39,7 +39,7 @@ This implements title \"Function Declarations and Definitions\" of the Google C++ Style Guide for the case where the previous -line ends with an open parenthese. +line ends with an open parenthesis. \"Current C expression\", as per the Google Style Guide and as clarified by subsequent discussions, means the whole expression diff --git a/javascriptguide.xml b/javascriptguide.xml index aba5a1e..ce67502 100644 --- a/javascriptguide.xml +++ b/javascriptguide.xml @@ -3072,7 +3072,7 @@ /** * Whether to cancel the event in internal capture/bubble processing. * @public {boolean} - * @suppress {visiblity} Referencing this outside this package is strongly + * @suppress {visibility} Referencing this outside this package is strongly * discouraged. */ goog.events.Event.prototype.propagationStopped_ = false; diff --git a/jsguide.html b/jsguide.html index 8e414af..9aca653 100644 --- a/jsguide.html +++ b/jsguide.html @@ -92,7 +92,7 @@ characters are used, an explanatory comment can be very helpful.

/* Best: perfectly clear even without a comment. */
 const units = 'μs';
 
-/* Allowed: but unncessary as μ is a printable character. */
+/* Allowed: but unnecessary as μ is a printable character. */
 const units = '\u03bcs'; // 'μs'
 
 /* Good: use escapes for non-printable characters with a comment for clarity. */
diff --git a/lispguide.xml b/lispguide.xml
index 96c5cc6..456a23e 100644
--- a/lispguide.xml
+++ b/lispguide.xml
@@ -805,8 +805,8 @@ Robert Brown
       

You should strive to keep top-level forms, including comments but excluding the documentation string, of - appropriate length; preferrably short. Forms extending beyond a - single page should be rare and their use should be justfied. + appropriate length; preferably short. Forms extending beyond a + single page should be rare and their use should be justified. This applies to each of the forms in an eval-when, rather than to the eval-when itself. Additionally, defpackage forms may be longer, @@ -3116,7 +3116,7 @@ Robert Brown You must not use exact comparison on floating point numbers, since the vague nature of floating point arithmetic can produce little "errors" in numeric value. - You should compare absolute values to a threshhold. + You should compare absolute values to a threshold.

You must use = to compare numbers, diff --git a/styleguide.xsl b/styleguide.xsl index dfdc598..f8cbfae 100644 --- a/styleguide.xsl +++ b/styleguide.xsl @@ -687,7 +687,7 @@ xmlns:fn="http://www.w3.org/2005/xpath-functions"> - c: the indentation of the current python block, in other words, the indentation of the first line of this block, which is the indentation of the last line we saw that ended with a colon. - - d: the "total" indentation of the line, ignorng possible "Yes:" or + - d: the "total" indentation of the line, ignoring possible "Yes:" or "No:" text on the line. For example, for the last line of the following code snippet, the diff --git a/vimscriptfull.xml b/vimscriptfull.xml index fa7e343..ea2123b 100644 --- a/vimscriptfull.xml +++ b/vimscriptfull.xml @@ -107,7 +107,7 @@ >=# must be used for strings.

  • - The behavior of =~ and friends is dependant upon the + The behavior of =~ and friends is dependent upon the ignorecase setting.
  • @@ -232,7 +232,7 @@ Loud scripts are annoying.
  • - Message the user when an error has occured. + Message the user when an error has occurred.
  • Message the user when an operation which takes a long time has diff --git a/vimscriptguide.xml b/vimscriptguide.xml index 2baf3fd..5f40f6f 100644 --- a/vimscriptguide.xml +++ b/vimscriptguide.xml @@ -110,7 +110,7 @@ Match error codes, not error text. -

    Error text may be locale dependant.

    +

    Error text may be locale dependent.