[llvm] r282490 - [docs] Fix naming style in the example
Alexander Kornienko via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 27 07:49:46 PDT 2016
Author: alexfh
Date: Tue Sep 27 09:49:45 2016
New Revision: 282490
URL: http://llvm.org/viewvc/llvm-project?rev=282490&view=rev
Log:
[docs] Fix naming style in the example
Modified:
llvm/trunk/docs/CodingStandards.rst
Modified: llvm/trunk/docs/CodingStandards.rst
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/docs/CodingStandards.rst?rev=282490&r1=282489&r2=282490&view=diff
==============================================================================
--- llvm/trunk/docs/CodingStandards.rst (original)
+++ llvm/trunk/docs/CodingStandards.rst Tue Sep 27 09:49:45 2016
@@ -1169,7 +1169,7 @@ Here are some examples of good and bad n
// kind of factories.
};
- Vehicle MakeVehicle(VehicleType Type) {
+ Vehicle makeVehicle(VehicleType Type) {
VehicleMaker M; // Might be OK if having a short life-span.
Tire Tmp1 = M.makeTire(); // Bad -- 'Tmp1' provides no information.
Light Headlight = M.makeLight("head"); // Good -- descriptive.
More information about the llvm-commits
mailing list