From 4970979f79061e920a3120cba107bcf0a6738e25 Mon Sep 17 00:00:00 2001 From: James R T Date: Fri, 3 Jun 2022 12:50:08 +0800 Subject: [PATCH] Fix typos in comment and logging --- src/node/RosTCP.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/node/RosTCP.js b/src/node/RosTCP.js index cdfae0f6a..2f2b50133 100644 --- a/src/node/RosTCP.js +++ b/src/node/RosTCP.js @@ -6,15 +6,15 @@ var util = require('util'); /** * Same as core Ros except supports TCP connections - * also can receive a socket.io instance (options.socketio) or server intance (option.http) + * also can receive a socket.io instance (options.socketio) or server instance (option.http) * to connect to the front using socket.io * @private */ function RosTCP(options) { options = options || {}; if (!options.encoding) { - console.error('ROSLib uses utf8 encoding by default.' + - 'It would be more efficent to use ascii (if possible)'); + console.error('ROSLib uses utf8 encoding by default. ' + + 'It would be more efficient to use ascii (if possible).'); } this.encoding = options.encoding || 'utf8'; Ros.call(this, options);