You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: reference/kotlin/kotlin-generated/index.html
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -67,7 +67,7 @@
67
67
</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
68
68
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,
69
69
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
71
71
the
72
72
<ahref=/programming-guides/proto2#scalar>scalar value types table</a>.
73
73
For message and enum types, the value type is replaced with the message or enum
0 commit comments