From 57738979ec3e3697de8121ed5e4a7521ec586221 Mon Sep 17 00:00:00 2001 From: Tim Gates Date: Sun, 18 Sep 2022 06:57:52 +1000 Subject: [PATCH] docs: Fix a few typos There are small typos in: - examples/live_cpu_graph/live_cpu_graph/static/excanvas.js - examples/pyramid_backbone_redis_chat/chatter3/static/backbone.js - examples/pyramid_backbone_redis_chat/chatter3/static/handlebars.js - examples/pyramid_backbone_redis_chat_persistence/chatter4/static/backbone.js - examples/pyramid_backbone_redis_chat_persistence/chatter4/static/handlebars.js - examples/simple_pyramid_chat/chatter2/static/backbone.js - examples/simple_pyramid_chat/chatter2/static/handlebars.js - examples/testapp/testapp/static/backbone.js - examples/testapp/testapp/static/handlebars.js - socketio/virtsocket.py - tests/jstests/static/qunit.js Fixes: - Should read `retrieve` rather than `retreive`. - Should read `preferred` rather than `prefered`. - Should read `suppress` rather than `surpress`. - Should read `function` rather than `funtion`. - Should read `dealt` rather than `dealth`. Signed-off-by: Tim Gates --- examples/live_cpu_graph/live_cpu_graph/static/excanvas.js | 2 +- .../pyramid_backbone_redis_chat/chatter3/static/backbone.js | 2 +- .../pyramid_backbone_redis_chat/chatter3/static/handlebars.js | 2 +- .../chatter4/static/backbone.js | 2 +- .../chatter4/static/handlebars.js | 2 +- examples/simple_pyramid_chat/chatter2/static/backbone.js | 2 +- examples/simple_pyramid_chat/chatter2/static/handlebars.js | 2 +- examples/testapp/testapp/static/backbone.js | 2 +- examples/testapp/testapp/static/handlebars.js | 2 +- socketio/virtsocket.py | 2 +- tests/jstests/static/qunit.js | 2 +- 11 files changed, 11 insertions(+), 11 deletions(-) diff --git a/examples/live_cpu_graph/live_cpu_graph/static/excanvas.js b/examples/live_cpu_graph/live_cpu_graph/static/excanvas.js index 367764b..970b3ec 100755 --- a/examples/live_cpu_graph/live_cpu_graph/static/excanvas.js +++ b/examples/live_cpu_graph/live_cpu_graph/static/excanvas.js @@ -49,7 +49,7 @@ if (!document.createElement('canvas').getContext) { var Z2 = Z / 2; /** - * This funtion is assigned to the elements as element.getContext(). + * This function is assigned to the elements as element.getContext(). * @this {HTMLElement} * @return {CanvasRenderingContext2D_} */ diff --git a/examples/pyramid_backbone_redis_chat/chatter3/static/backbone.js b/examples/pyramid_backbone_redis_chat/chatter3/static/backbone.js index e0358a6..2ff29e3 100644 --- a/examples/pyramid_backbone_redis_chat/chatter3/static/backbone.js +++ b/examples/pyramid_backbone_redis_chat/chatter3/static/backbone.js @@ -990,7 +990,7 @@ tagName: 'div', // jQuery delegate for element lookup, scoped to DOM elements within the - // current view. This should be prefered to global lookups where possible. + // current view. This should be preferred to global lookups where possible. $: function(selector) { return this.$el.find(selector); }, diff --git a/examples/pyramid_backbone_redis_chat/chatter3/static/handlebars.js b/examples/pyramid_backbone_redis_chat/chatter3/static/handlebars.js index 67d6b96..5f35f34 100644 --- a/examples/pyramid_backbone_redis_chat/chatter3/static/handlebars.js +++ b/examples/pyramid_backbone_redis_chat/chatter3/static/handlebars.js @@ -236,7 +236,7 @@ parse: function parse(input) { var symbol, preErrorSymbol, state, action, a, r, yyval={},p,len,newState, expected; while (true) { - // retreive state number from top of stack + // retrieve state number from top of stack state = stack[stack.length-1]; // use default actions if available diff --git a/examples/pyramid_backbone_redis_chat_persistence/chatter4/static/backbone.js b/examples/pyramid_backbone_redis_chat_persistence/chatter4/static/backbone.js index e0358a6..2ff29e3 100644 --- a/examples/pyramid_backbone_redis_chat_persistence/chatter4/static/backbone.js +++ b/examples/pyramid_backbone_redis_chat_persistence/chatter4/static/backbone.js @@ -990,7 +990,7 @@ tagName: 'div', // jQuery delegate for element lookup, scoped to DOM elements within the - // current view. This should be prefered to global lookups where possible. + // current view. This should be preferred to global lookups where possible. $: function(selector) { return this.$el.find(selector); }, diff --git a/examples/pyramid_backbone_redis_chat_persistence/chatter4/static/handlebars.js b/examples/pyramid_backbone_redis_chat_persistence/chatter4/static/handlebars.js index 67d6b96..5f35f34 100644 --- a/examples/pyramid_backbone_redis_chat_persistence/chatter4/static/handlebars.js +++ b/examples/pyramid_backbone_redis_chat_persistence/chatter4/static/handlebars.js @@ -236,7 +236,7 @@ parse: function parse(input) { var symbol, preErrorSymbol, state, action, a, r, yyval={},p,len,newState, expected; while (true) { - // retreive state number from top of stack + // retrieve state number from top of stack state = stack[stack.length-1]; // use default actions if available diff --git a/examples/simple_pyramid_chat/chatter2/static/backbone.js b/examples/simple_pyramid_chat/chatter2/static/backbone.js index e0358a6..2ff29e3 100644 --- a/examples/simple_pyramid_chat/chatter2/static/backbone.js +++ b/examples/simple_pyramid_chat/chatter2/static/backbone.js @@ -990,7 +990,7 @@ tagName: 'div', // jQuery delegate for element lookup, scoped to DOM elements within the - // current view. This should be prefered to global lookups where possible. + // current view. This should be preferred to global lookups where possible. $: function(selector) { return this.$el.find(selector); }, diff --git a/examples/simple_pyramid_chat/chatter2/static/handlebars.js b/examples/simple_pyramid_chat/chatter2/static/handlebars.js index 67d6b96..5f35f34 100644 --- a/examples/simple_pyramid_chat/chatter2/static/handlebars.js +++ b/examples/simple_pyramid_chat/chatter2/static/handlebars.js @@ -236,7 +236,7 @@ parse: function parse(input) { var symbol, preErrorSymbol, state, action, a, r, yyval={},p,len,newState, expected; while (true) { - // retreive state number from top of stack + // retrieve state number from top of stack state = stack[stack.length-1]; // use default actions if available diff --git a/examples/testapp/testapp/static/backbone.js b/examples/testapp/testapp/static/backbone.js index e0358a6..2ff29e3 100644 --- a/examples/testapp/testapp/static/backbone.js +++ b/examples/testapp/testapp/static/backbone.js @@ -990,7 +990,7 @@ tagName: 'div', // jQuery delegate for element lookup, scoped to DOM elements within the - // current view. This should be prefered to global lookups where possible. + // current view. This should be preferred to global lookups where possible. $: function(selector) { return this.$el.find(selector); }, diff --git a/examples/testapp/testapp/static/handlebars.js b/examples/testapp/testapp/static/handlebars.js index 67d6b96..5f35f34 100644 --- a/examples/testapp/testapp/static/handlebars.js +++ b/examples/testapp/testapp/static/handlebars.js @@ -236,7 +236,7 @@ parse: function parse(input) { var symbol, preErrorSymbol, state, action, a, r, yyval={},p,len,newState, expected; while (true) { - // retreive state number from top of stack + // retrieve state number from top of stack state = stack[stack.length-1]; // use default actions if available diff --git a/socketio/virtsocket.py b/socketio/virtsocket.py index fe54a66..672b5ae 100644 --- a/socketio/virtsocket.py +++ b/socketio/virtsocket.py @@ -370,7 +370,7 @@ def _receiver_loop(self): continue if pkt['type'] == 'heartbeat': - # This is already dealth with in put_server_msg() when + # This is already dealt with in put_server_msg() when # any incoming raw data arrives. continue diff --git a/tests/jstests/static/qunit.js b/tests/jstests/static/qunit.js index bed5f45..ce9e379 100644 --- a/tests/jstests/static/qunit.js +++ b/tests/jstests/static/qunit.js @@ -1024,7 +1024,7 @@ addEvent( window, "load", QUnit.load ); onErrorFnPrev = window.onerror; // Cover uncaught exceptions -// Returning true will surpress the default browser handler, +// Returning true will suppress the default browser handler, // returning false will let it run. window.onerror = function ( error, filePath, linerNr ) { var ret = false;