Skip to content

Commit acde68c

Browse files
deploy: 8e9ff00
1 parent c33550c commit acde68c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

reference/kotlin/kotlin-generated/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
</span></span></span></code></pre></div><p>The compiler will generate the following accessors in the DSL:</p><ul><li><code>fun hasFoo(): Boolean</code>: Returns <code>true</code> if the field is set. This is not
6868
generated for fields using implicit presence.</li><li><code>var foo: Int</code>: The current value of the field. If the field is not set,
6969
returns the default value.</li><li><code>fun clearFoo()</code>: Clears the value of the field. After calling this,
70-
<code>hasFoo()</code> will return <code>false</code> and <code>getFoo()</code> will return the default value.</li></ul><p>For other simple field types, the corresponding Java type is chosen according to
70+
<code>hasFoo()</code> will return <code>false</code> and <code>foo</code> will return the default value.</li></ul><p>For other simple field types, the corresponding Java type is chosen according to
7171
the
7272
<a href=/programming-guides/proto2#scalar>scalar value types table</a>.
7373
For message and enum types, the value type is replaced with the message or enum

0 commit comments

Comments
 (0)