Skip to content

Commit

Permalink
Fix typos in comment and logging (#551)
Browse files Browse the repository at this point in the history
  • Loading branch information
jamestiotio authored and MatthijsBurgh committed Dec 4, 2023
1 parent 8f709de commit 9aa5a13
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/node/RosTCP.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 9aa5a13

Please # to comment.