Skip to content

Commit 76e8a44

Browse files
deploy: 19b5a5f
1 parent 58eea9a commit 76e8a44

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

editions/features/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@
146146
serialized onto the wire (even if it is explicitly set). <code>has_*</code> functions
147147
are not generated for fields set to <code>IMPLICIT</code>.</li></ul><p><strong>Applicable to the following scopes:</strong> file, field</p><p><strong>Added in:</strong> Edition 2023</p><p><strong>Default behavior per syntax/edition:</strong></p><table><thead><tr><th>Syntax/edition</th><th>Default</th></tr></thead><tbody><tr><td>2024</td><td><code>EXPLICIT</code></td></tr><tr><td>2023</td><td><code>EXPLICIT</code></td></tr><tr><td>proto3</td><td><code>IMPLICIT</code>*</td></tr><tr><td>proto2</td><td><code>EXPLICIT</code></td></tr></tbody></table><p>* proto3 is <code>IMPLICIT</code> unless the field has the <code>optional</code> label, in which case
148148
it behaves like <code>EXPLICIT</code>. See
149-
<a href=/programming-guides/field_presence#presence-in-proto3-apis>Presence in Proto3 APIs</a>
149+
<a href=/programming-guides/field_presence#presence-proto3>Presence in Proto3 APIs</a>
150150
for more information.</p><p><strong>Note:</strong> Feature settings on different schema elements
151151
<a href=#cascading>have different scopes</a>.</p><p>The following code sample shows a proto2 file:</p><div class=highlight><pre tabindex=0 style=background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code class=language-proto data-lang=proto><span style=display:flex><span><span style=color:#000>syntax</span> <span style=color:#ce5c00;font-weight:700>=</span> <span style=color:#4e9a06>&#34;proto2&#34;</span><span style=color:#000;font-weight:700>;</span><span style=color:#a40000>
152152
</span></span></span><span style=display:flex><span><span style=color:#a40000>

getting-started/darttutorial/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@
239239
</span></span><span style=display:flex><span><span style=color:#8f5902;font-style:italic>// Reads the entire address book from a file and prints all
240240
</span></span></span><span style=display:flex><span><span style=color:#8f5902;font-style:italic>// the information inside.
241241
</span></span></span><span style=display:flex><span><span style=color:#8f5902;font-style:italic></span><span style=color:#000>main</span><span style=color:#000;font-weight:700>(</span><span style=color:#000>List</span> <span style=color:#000>arguments</span><span style=color:#000;font-weight:700>)</span> <span style=color:#000;font-weight:700>{</span>
242-
</span></span><span style=display:flex><span> <span style=color:#204a87;font-weight:700>if</span> <span style=color:#000;font-weight:700>(</span><span style=color:#000>arguments</span><span style=color:#000;font-weight:700>.</span><span style=color:#000>length</span> <span style=color:#ce5c00;font-weight:700>!=</span> <span style=color:#0000cf;font-weight:700>1</span><span style=color:#000;font-weight:700>)</span><span style=color:#a40000> </span><span style=color:#000;font-weight:700>{</span>
242+
</span></span><span style=display:flex><span> <span style=color:#204a87;font-weight:700>if</span> <span style=color:#000;font-weight:700>(</span><span style=color:#000>arguments</span><span style=color:#000;font-weight:700>.</span><span style=color:#000>length</span> <span style=color:#ce5c00;font-weight:700>!=</span> <span style=color:#0000cf;font-weight:700>1</span><span style=color:#000;font-weight:700>)</span> <span style=color:#000;font-weight:700>{</span>
243243
</span></span><span style=display:flex><span> <span style=color:#000>print</span><span style=color:#000;font-weight:700>(</span><span style=color:#4e9a06>&#39;Usage: list_person ADDRESS_BOOK_FILE&#39;</span><span style=color:#000;font-weight:700>);</span>
244244
</span></span><span style=display:flex><span> <span style=color:#000>exit</span><span style=color:#000;font-weight:700>(</span><span style=color:#ce5c00;font-weight:700>-</span><span style=color:#0000cf;font-weight:700>1</span><span style=color:#000;font-weight:700>);</span>
245245
</span></span><span style=display:flex><span> <span style=color:#000;font-weight:700>}</span>

0 commit comments

Comments
 (0)