Skip to content

Commit

Permalink
SERVER-7565 Fix typos and style
Browse files Browse the repository at this point in the history
  • Loading branch information
Tad Marshall committed Nov 6, 2012
1 parent ca95a09 commit 661bee9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/mongo/base/generate_error_codes.py
Expand Up @@ -149,8 +149,8 @@ def generate_error_class_predicate_definition(class_name, code_names):
namespace mongo {
/**
* This is a generated class containg a table of error codes and their corresponding error
* strings. The class is derived from the definitions in src/mongno/base/error_codes.err file.
* This is a generated class containing a table of error codes and their corresponding error
* strings. The class is derived from the definitions in src/mongo/base/error_codes.err file.
*
* Do not update this file directly. Update src/mongo/base/error_codes.err instead.
*/
Expand Down Expand Up @@ -192,7 +192,7 @@ class ErrorCodes {
#include <cstring>
namespace mongo {
const char *ErrorCodes::errorString(Error err) {
const char* ErrorCodes::errorString(Error err) {
switch (err) {
%(symbol_to_string_cases)s;
default: return "Unknown error code";
Expand All @@ -217,7 +217,7 @@ class ErrorCodes {
'''

error_class_predicate_template = '''bool ErrorCodes::is%(class_name)s(Error err) {
switch(err) {
switch (err) {
%(cases)s
return true;
default:
Expand Down

0 comments on commit 661bee9

Please sign in to comment.