Skip to content

Commit

Permalink
Fix code block syntax targets (#1347)
Browse files Browse the repository at this point in the history
  • Loading branch information
srchase authored Aug 12, 2022
1 parent 9dcfa78 commit 1638e47
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion docs/source-1.0/spec/core/behavior-traits.rst
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ provided request token to identify and discard duplicate requests.
Client implementations MAY automatically provide a value for a request token
member if and only if the member is not explicitly provided.

.. code-block::
.. code-block:: smithy
operation AllocateWidget {
input: AllocateWidgetInput
Expand Down
4 changes: 2 additions & 2 deletions docs/source-2.0/guides/migrating-idl-1-to-2.rst
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ can be updated to:

.. code-block:: smithy
$version: "2.0"
$version: "2"
namespace smithy.example
Expand All @@ -445,7 +445,7 @@ means they can be individually targeted by traits, without having to have
special handling inside of Smithy itself. Their definitions in the IDL are now
also much more concise and readable. For example, the following model:

.. code-block::
.. code-block:: smithy
$version: "1.0"
Expand Down
4 changes: 2 additions & 2 deletions docs/source-2.0/spec/aggregate-types.rst
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ trait does not need to be added in its place.
The special ":=" syntax for the operation input property automatically applies
the ``input`` trait:

.. code-block::
.. code-block:: smithy
operation PutTimeSpan {
input := {
Expand All @@ -334,7 +334,7 @@ the ``input`` trait:
Because of the ``input`` trait, the operation can be updated to remove the
``required`` trait without breaking things like previously generated clients:

.. code-block::
.. code-block:: smithy
operation PutTimeSpan {
input := {
Expand Down
2 changes: 1 addition & 1 deletion docs/source-2.0/spec/behavior-traits.rst
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ provided request token to identify and discard duplicate requests.
Client implementations MAY automatically provide a value for a request token
member if and only if the member is not explicitly provided.

.. code-block::
.. code-block:: smithy
operation AllocateWidget {
input: AllocateWidgetInput
Expand Down

0 comments on commit 1638e47

Please sign in to comment.