Commit bd78705c authored by Harris Hancock's avatar Harris Hancock

Fix typo and formatting in comments

parent c4629e37
...@@ -494,7 +494,7 @@ private: ...@@ -494,7 +494,7 @@ private:
case schema::Type::AnyPointer::Unconstrained::LIST: case schema::Type::AnyPointer::Unconstrained::LIST:
return CppTypeName::makePrimitive(" ::capnp::AnyList"); return CppTypeName::makePrimitive(" ::capnp::AnyList");
case schema::Type::AnyPointer::Unconstrained::CAPABILITY: case schema::Type::AnyPointer::Unconstrained::CAPABILITY:
hasInterfaces = true; // Probably need to #inculde <capnp/capability.h>. hasInterfaces = true; // Probably need to #include <capnp/capability.h>.
return CppTypeName::makePrimitive(" ::capnp::Capability"); return CppTypeName::makePrimitive(" ::capnp::Capability");
} }
KJ_UNREACHABLE; KJ_UNREACHABLE;
...@@ -682,12 +682,12 @@ private: ...@@ -682,12 +682,12 @@ private:
kj::StringTree dependencies; kj::StringTree dependencies;
size_t dependencyCount; size_t dependencyCount;
// TODO(msvc): `dependencyCount` is the number of individual dependency definitions in // TODO(msvc): `dependencyCount` is the number of individual dependency definitions in
// `dependencies`. It's a hack to allow makeGenericDefinitions to hard-code the size of the // `dependencies`. It's a hack to allow makeGenericDefinitions to hard-code the size of the
// `_capnpPrivate::brandDependencies` array into the definition of // `_capnpPrivate::brandDependencies` array into the definition of
// `_capnpPrivate::specificBrand::dependencyCount`. This is necessary because MSVC cannot deduce // `_capnpPrivate::specificBrand::dependencyCount`. This is necessary because MSVC cannot
// the size of `brandDependencies` if it is nested under a class template. It's probably this // deduce the size of `brandDependencies` if it is nested under a class template. It's
// demoralizingly deferred bug: // probably this demoralizingly deferred bug:
// https://connect.microsoft.com/VisualStudio/feedback/details/759407/can-not-get-size-of-static-array-defined-in-class-template // https://connect.microsoft.com/VisualStudio/feedback/details/759407/can-not-get-size-of-static-array-defined-in-class-template
}; };
BrandInitializerText makeBrandInitializers( BrandInitializerText makeBrandInitializers(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment