From c55b1e87edc3b4ce855d8969347ce0e10bab033f Mon Sep 17 00:00:00 2001 From: Mark Wylde Date: Sat, 20 Aug 2016 14:25:13 +0100 Subject: [PATCH] Fix spelling mistake from registred to registered --- atom/browser/api/atom_api_protocol.cc | 4 ++-- spec/api-protocol-spec.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/atom/browser/api/atom_api_protocol.cc b/atom/browser/api/atom_api_protocol.cc index e4f27b5..fd24850 100644 --- a/atom/browser/api/atom_api_protocol.cc +++ b/atom/browser/api/atom_api_protocol.cc @@ -157,8 +157,8 @@ void Protocol::OnIOCompleted( std::string Protocol::ErrorCodeToString(ProtocolError error) { switch (error) { case PROTOCOL_FAIL: return "Failed to manipulate protocol factory"; - case PROTOCOL_REGISTERED: return "The scheme has been registred"; - case PROTOCOL_NOT_REGISTERED: return "The scheme has not been registred"; + case PROTOCOL_REGISTERED: return "The scheme has been registered"; + case PROTOCOL_NOT_REGISTERED: return "The scheme has not been registered"; case PROTOCOL_INTERCEPTED: return "The scheme has been intercepted"; case PROTOCOL_NOT_INTERCEPTED: return "The scheme has not been intercepted"; default: return "Unexpected error"; diff --git a/spec/api-protocol-spec.js b/spec/api-protocol-spec.js index 3aba18c..b276635 100644 --- a/spec/api-protocol-spec.js +++ b/spec/api-protocol-spec.js @@ -591,7 +591,7 @@ describe('protocol module', function () { }) }) - it('returns false when scheme is not registred', function (done) { + it('returns false when scheme is not registered', function (done) { protocol.isProtocolHandled('no-exist', function (result) { assert.equal(result, false) done() -- 2.7.4