Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

SERVER-7565 Fix typos and style

  • Loading branch information...
commit 661bee981c0b3898d911b76fb9fba1430e608ab2 1 parent ca95a09
Tad Marshall tadmarshall authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/mongo/base/generate_error_codes.py
8 src/mongo/base/generate_error_codes.py
View
@@ -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.
*/
@@ -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";
@@ -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:
Please sign in to comment.
Something went wrong with that request. Please try again.