Skip to content

Commit 2d943ca

Browse files
committed
Merge pull request #1088 from keertip/const
remove const from constant value
2 parents 260c5ce + 5d9d717 commit 2d943ca

File tree

6 files changed

+4
-16
lines changed

6 files changed

+4
-16
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## unreleased
2+
* [bug] modify showing constants so that there is no double `const` shown in
3+
value.
4+
15
## 0.8.5
26
* [enhancement] do not document if there is a <nodoc> in the doc comment.
37
* [bug]link typdefs when used as parameters

lib/templates/_constant.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
<dd>
66
<p>{{{ oneLineDoc }}}{{>has_more_docs}}</p>
77
<div>
8-
<span class="features">const</span>
98
<span class="signature"><code>{{{ constantValue }}}</code></span>
109
</div>
1110
</dd>

test_package_docs/ex/Animal-class.html

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,6 @@ <h2>Constants</h2>
143143
<dd>
144144
<p></p>
145145
<div>
146-
<span class="features">const</span>
147146
<span class="signature"><code>const Animal(1)</code></span>
148147
</div>
149148
</dd>
@@ -154,7 +153,6 @@ <h2>Constants</h2>
154153
<dd>
155154
<p></p>
156155
<div>
157-
<span class="features">const</span>
158156
<span class="signature"><code>const Animal(2)</code></span>
159157
</div>
160158
</dd>
@@ -165,7 +163,6 @@ <h2>Constants</h2>
165163
<dd>
166164
<p></p>
167165
<div>
168-
<span class="features">const</span>
169166
<span class="signature"><code>const Animal(3)</code></span>
170167
</div>
171168
</dd>
@@ -176,7 +173,6 @@ <h2>Constants</h2>
176173
<dd>
177174
<p>A constant List of the values in this enum, in order of their declaration.</p>
178175
<div>
179-
<span class="features">const</span>
180176
<span class="signature"><code>const List&lt;Animal&gt;</code></span>
181177
</div>
182178
</dd>

test_package_docs/ex/Apple-class.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,6 @@ <h2>Constants</h2>
164164
<dd>
165165
<p></p>
166166
<div>
167-
<span class="features">const</span>
168167
<span class="signature"><code>5</code></span>
169168
</div>
170169
</dd>

test_package_docs/ex/ShapeType-class.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,6 @@ <h2>Constants</h2>
143143
<dd>
144144
<p></p>
145145
<div>
146-
<span class="features">const</span>
147146
<span class="signature"><code>const <a href="ex/ShapeType-class.html">ShapeType</a>._internal("Ellipse")</code></span>
148147
</div>
149148
</dd>
@@ -154,7 +153,6 @@ <h2>Constants</h2>
154153
<dd>
155154
<p></p>
156155
<div>
157-
<span class="features">const</span>
158156
<span class="signature"><code>const <a href="ex/ShapeType-class.html">ShapeType</a>._internal("Rect")</code></span>
159157
</div>
160158
</dd>

test_package_docs/ex/ex-library.html

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,6 @@ <h2>Constants</h2>
104104
<dd>
105105
<p></p>
106106
<div>
107-
<span class="features">const</span>
108107
<span class="signature"><code>'red'</code></span>
109108
</div>
110109
</dd>
@@ -115,7 +114,6 @@ <h2>Constants</h2>
115114
<dd>
116115
<p></p>
117116
<div>
118-
<span class="features">const</span>
119117
<span class="signature"><code>'green'</code></span>
120118
</div>
121119
</dd>
@@ -126,7 +124,6 @@ <h2>Constants</h2>
126124
<dd>
127125
<p></p>
128126
<div>
129-
<span class="features">const</span>
130127
<span class="signature"><code>'orange'</code></span>
131128
</div>
132129
</dd>
@@ -137,7 +134,6 @@ <h2>Constants</h2>
137134
<dd>
138135
<p></p>
139136
<div>
140-
<span class="features">const</span>
141137
<span class="signature"><code>'red' + '-' + 'green' + '-' + 'blue'</code></span>
142138
</div>
143139
</dd>
@@ -148,7 +144,6 @@ <h2>Constants</h2>
148144
<dd>
149145
<p>Marks a feature as <a href="ex/Deprecated-class.html">Deprecated</a> until the next release.</p>
150146
<div>
151-
<span class="features">const</span>
152147
<span class="signature"><code>const <a href="ex/Deprecated-class.html">Deprecated</a>("next release")</code></span>
153148
</div>
154149
</dd>
@@ -159,7 +154,6 @@ <h2>Constants</h2>
159154
<dd>
160155
<p>This is the same name as a top-level const from the fake lib.</p>
161156
<div>
162-
<span class="features">const</span>
163157
<span class="signature"><code>'same name as const from fake'</code></span>
164158
</div>
165159
</dd>
@@ -170,7 +164,6 @@ <h2>Constants</h2>
170164
<dd>
171165
<p>This should <code>not work</code>.</p>
172166
<div>
173-
<span class="features">const</span>
174167
<span class="signature"><code>'doh'</code></span>
175168
</div>
176169
</dd>
@@ -181,7 +174,6 @@ <h2>Constants</h2>
181174
<dd>
182175
<p></p>
183176
<div>
184-
<span class="features">const</span>
185177
<span class="signature"><code>const <a href="ex/ConstantCat-class.html">ConstantCat</a>('tabby')</code></span>
186178
</div>
187179
</dd>

0 commit comments

Comments
 (0)