OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c87be4a
)
[docs] Fix naming style in the example
author
Alexander Kornienko
<alexfh@google.com>
Tue, 27 Sep 2016 14:49:45 +0000
(14:49 +0000)
committer
Alexander Kornienko
<alexfh@google.com>
Tue, 27 Sep 2016 14:49:45 +0000
(14:49 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@282490
91177308
-0d34-0410-b5e6-
96231b3b80d8
docs/CodingStandards.rst
patch
|
blob
|
history
diff --git
a/docs/CodingStandards.rst
b/docs/CodingStandards.rst
index
93feea5
..
0067db5
100644
(file)
--- a/
docs/CodingStandards.rst
+++ b/
docs/CodingStandards.rst
@@
-1169,7
+1169,7
@@
Here are some examples of good and bad names:
// kind of factories.
};
- Vehicle
M
akeVehicle(VehicleType Type) {
+ Vehicle
m
akeVehicle(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.