mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-24 05:09:34 +00:00
[docs] Fix naming style in the example
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@282490 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c87be4a440
commit
e9029b173c
@ -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…
x
Reference in New Issue
Block a user