mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
[docs] Fix naming style in the example
llvm-svn: 282490
This commit is contained in:
parent
57914efac5
commit
3a2952c312
@ -1169,7 +1169,7 @@ Here are some examples of good and bad names:
|
|||||||
// kind of factories.
|
// kind of factories.
|
||||||
};
|
};
|
||||||
|
|
||||||
Vehicle MakeVehicle(VehicleType Type) {
|
Vehicle makeVehicle(VehicleType Type) {
|
||||||
VehicleMaker M; // Might be OK if having a short life-span.
|
VehicleMaker M; // Might be OK if having a short life-span.
|
||||||
Tire Tmp1 = M.makeTire(); // Bad -- 'Tmp1' provides no information.
|
Tire Tmp1 = M.makeTire(); // Bad -- 'Tmp1' provides no information.
|
||||||
Light Headlight = M.makeLight("head"); // Good -- descriptive.
|
Light Headlight = M.makeLight("head"); // Good -- descriptive.
|
||||||
|
Loading…
Reference in New Issue
Block a user