Skip to content

Commit fa3e312

Browse files
committed
Use a scoped, rather than an embedded context for default language example.
Fixes #250.
1 parent 7782376 commit fa3e312

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

index.html

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4994,23 +4994,23 @@ <h3>Using the Document Base for the Default Vocabulary</h3>
49944994
<a>string</a> values that are not <a href="#type-coercion">type coerced</a>.</p>
49954995

49964996
<p>To clear the <a>default language</a> for a subtree, <code>@language</code> can
4997-
be set to <code>null</code> in a <a>local context</a> as follows:</p>
4997+
be set to <code>null</code> in an intervening context, such as a <a>scoped context</a> as follows:</p>
49984998

49994999
<pre class="example nohighlight" data-transform="updateExample"
50005000
title="Clearing default language">
50015001
<!--
50025002
{
50035003
"@context": {
50045004
####...####
5005-
"@language": "ja"
5005+
"@language": "ja",
5006+
"details": {
5007+
****"@context": {
5008+
"@language": null
5009+
}****
5010+
}
50065011
},
50075012
"name": "花澄",
5008-
"details": {
5009-
****"@context": {
5010-
"@language": null
5011-
}****,
5012-
"occupation": "Ninja"
5013-
}
5013+
"details": {"occupation": "Ninja"}
50145014
}
50155015
-->
50165016
</pre>

0 commit comments

Comments
 (0)