Skip to content

Commit c710f5d

Browse files
authored
Merge pull request #2888 from XRPLF/quick-fixes
Quick fixes
2 parents b65fde9 + 1be502e commit c710f5d

File tree

3 files changed

+25
-13
lines changed

3 files changed

+25
-13
lines changed

@l10n/ja/docs/references/protocol/binary-format.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -155,17 +155,17 @@ curated_anchors:
155155
156156
### タイプコード
157157
158-
各フィールドタイプには任意のタイプコードが含まれており、番号が小さいコードから最初にソートされます。これらのコードは[`SField.h`](https://github.com/XRPLF/rippled/blob/master/src/ripple/protocol/SField.h#L57-L74)で定義されています。
158+
各フィールドタイプには任意のタイプコードが含まれており、番号が小さいコードから最初にソートされます。これらのコードは[`SField.h`](https://github.com/XRPLF/rippled/blob/master/include/xrpl/protocol/SField.h#L60-L98)で定義されています。
159159
160-
たとえば [UInt32のタイプコードが2である](https://github.com/XRPLF/rippled/blob/72e6005f562a8f0818bc94803d222ac9345e1e40/src/ripple/protocol/SField.h#L59)ので、すべてのUInt32フィールドは、すべての[Amountフィールド(タイプコード6)](https://github.com/XRPLF/rippled/blob/72e6005f562a8f0818bc94803d222ac9345e1e40/src/ripple/protocol/SField.h#L63)よりも前に位置します。
160+
たとえば [UInt32のタイプコードが2である](https://github.com/XRPLF/rippled/blob/master/include/xrpl/protocol/SField.h#L67)ので、すべてのUInt32フィールドは、すべての[Amountフィールド(タイプコード6)](https://github.com/XRPLF/rippled/blob/master/include/xrpl/protocol/SField.h#L71)よりも前に位置します。
161161
162162
[定義ファイル](#定義ファイル)には、`TYPES`マップの各タイプのタイプコードがリストされています。
163163
164164
### フィールドコード
165165
166-
各フィールドにはフィールドコードが含まれています。フィールドコードは、同じタイプのフィールドをソートするときに使用され、番号が小さいコードが最初になるようにソートされます。これらのフィールドは[`SField.cpp`](https://github.com/XRPLF/rippled/blob/72e6005f562a8f0818bc94803d222ac9345e1e40/src/ripple/protocol/impl/SField.cpp#L72-L266)で定義されています。
166+
各フィールドにはフィールドコードが含まれています。フィールドコードは、同じタイプのフィールドをソートするときに使用され、番号が小さいコードが最初になるようにソートされます。これらのフィールドは[`sfields/macro`](https://github.com/XRPLF/rippled/blob/master/include/xrpl/protocol/detail/sfields.macro)で定義されています。
167167
168-
たとえば[Paymentトランザクション][]の`Account`フィールドの[ソートコードが1である](https://github.com/XRPLF/rippled/blob/72e6005f562a8f0818bc94803d222ac9345e1e40/src/ripple/protocol/impl/SField.cpp#L219)場合、このフィールドは`Destination`フィールド([ソートコードが3である](https://github.com/XRPLF/rippled/blob/72e6005f562a8f0818bc94803d222ac9345e1e40/src/ripple/protocol/impl/SField.cpp#L221)フィールド)よりも前に位置します。
168+
たとえば[Paymentトランザクション][]の`Account`フィールドの[ソートコードが1である](https://github.com/XRPLF/rippled/blob/master/include/xrpl/protocol/detail/sfields.macro#L269)場合、このフィールドは`Destination`フィールド([ソートコードが3である](https://github.com/XRPLF/rippled/blob/master/include/xrpl/protocol/detail/sfields.macro#L271)フィールド)よりも前に位置します。
169169
170170
フィールドコードは異なるフィールドタイプのフィールドで再利用されますが、同じタイプのフィールドに同じフィールドコードが含まれることはありません。タイプコードとフィールドコードを組み合わせると、フィールドの一意の[フィールドID](#フィールドid)になります。
171171

docs/references/protocol/binary-format.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -155,17 +155,17 @@ All fields in a transaction are sorted in a specific order based first on the fi
155155
156156
### Type Codes
157157
158-
Each field type has an arbitrary type code, with lower codes sorting first. These codes are defined in [`SField.h`](https://github.com/XRPLF/rippled/blob/master/src/ripple/protocol/SField.h#L57-L74).
158+
Each field type has an arbitrary type code, with lower codes sorting first. These codes are defined in [`SField.h`](https://github.com/XRPLF/rippled/blob/master/include/xrpl/protocol/SField.h#L60-L98).
159159
160-
For example, [UInt32 has type code 2](https://github.com/XRPLF/rippled/blob/72e6005f562a8f0818bc94803d222ac9345e1e40/src/ripple/protocol/SField.h#L59), so all UInt32 fields come before all [Amount fields, which have type code 6](https://github.com/XRPLF/rippled/blob/72e6005f562a8f0818bc94803d222ac9345e1e40/src/ripple/protocol/SField.h#L63).
160+
For example, [UInt32 has type code 2](https://github.com/XRPLF/rippled/blob/master/include/xrpl/protocol/SField.h#L67), so all UInt32 fields come before all [Amount fields, which have type code 6](https://github.com/XRPLF/rippled/blob/master/include/xrpl/protocol/SField.h#L71).
161161
162162
The [definitions file](#definitions-file) lists the type codes for each type in the `TYPES` map.
163163
164164
### Field Codes
165165
166-
Each field has a field code, which is used to sort fields that have the same type as one another, with lower codes sorting first. These fields are defined in [`SField.cpp`](https://github.com/XRPLF/rippled/blob/72e6005f562a8f0818bc94803d222ac9345e1e40/src/ripple/protocol/impl/SField.cpp#L72-L266).
166+
Each field has a field code, which is used to sort fields that have the same type as one another, with lower codes sorting first. These fields are defined in [`sfields.macro`](https://github.com/XRPLF/rippled/blob/master/include/xrpl/protocol/detail/sfields.macro).
167167
168-
For example, the `Account` field of a [Payment transaction][] [has sort code 1](https://github.com/XRPLF/rippled/blob/72e6005f562a8f0818bc94803d222ac9345e1e40/src/ripple/protocol/impl/SField.cpp#L219), so it comes before the `Destination` field which [has sort code 3](https://github.com/XRPLF/rippled/blob/72e6005f562a8f0818bc94803d222ac9345e1e40/src/ripple/protocol/impl/SField.cpp#L221).
168+
For example, the `Account` field of a [Payment transaction][] [has sort code 1](https://github.com/XRPLF/rippled/blob/master/include/xrpl/protocol/detail/sfields.macro#L269), so it comes before the `Destination` field which [has sort code 3](https://github.com/XRPLF/rippled/blob/master/include/xrpl/protocol/detail/sfields.macro#L271).
169169
170170
Field codes are reused for fields of different field types, but fields of the same type never have the same field code. When you combine the type code with the field code, you get the field's unique [Field ID](#field-ids).
171171

redirects.yaml

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ xrp-testnet-faucet.html:
4646
xrp-test-net-faucet.html:
4747
to: /resources/dev-tools/xrp-faucets
4848
type: 301
49+
/resources/xrp-faucets:
50+
to: /resources/dev-tools/xrp-faucets
51+
type: 301
4952
tx-sender.html:
5053
to: /resources/dev-tools/tx-sender
5154
type: 301
@@ -2290,6 +2293,9 @@ blog/2023.html:
22902293
blog/2024.html:
22912294
to: /blog/
22922295
type: 301
2296+
blog/label/developer-reflections.html:
2297+
to: /blog/
2298+
type: 301
22932299
code_of_conduct/:
22942300
to: /code-of-conduct
22952301
type: 301
@@ -2340,6 +2346,9 @@ code_of_conduct.ja:
23402346
/ja/xrp-test-net-faucet.html:
23412347
to: /ja/resources/dev-tools/xrp-faucets
23422348
type: 301
2349+
/ja/resources/xrp-test-net-faucets:
2350+
to: /ja/resources/dev-tools/xrp-faucets
2351+
type: 301
23432352
/ja/tx-sender.html:
23442353
to: /ja/resources/dev-tools/tx-sender
23452354
type: 301
@@ -2370,6 +2379,9 @@ code_of_conduct.ja:
23702379
/ja/impact.html:
23712380
to: /ja/about/impact
23722381
type: 301
2382+
/ja/impact:
2383+
to: /ja/about/impact
2384+
type: 301
23732385
/ja/carbon-calculator.html:
23742386
to: /ja/about/impact
23752387
type: 301
@@ -2818,7 +2830,7 @@ code_of_conduct.ja:
28182830
to: /ja/docs/tutorials/python/get-started
28192831
type: 301
28202832
/ja/docs/tutorials/python/get-started/:
2821-
to: /jadocs/tutorials/python/build-apps/get-started/
2833+
to: /ja/docs/tutorials/python/build-apps/get-started/
28222834
type: 301
28232835
/ja/modular-tutorials-in-python.html:
28242836
to: /ja/docs/tutorials/python/
@@ -2860,10 +2872,10 @@ code_of_conduct.ja:
28602872
to: /ja/docs/tutorials/javascript/build-apps/get-started
28612873
type: 301
28622874
/ja/docs/tutorials/javascript/get-started:
2863-
to: /jadocs/tutorials/javascript/build-apps/get-started/
2875+
to: /ja/docs/tutorials/javascript/build-apps/get-started/
28642876
type: 301
28652877
/ja/docs/tutorials/javascript/get-started/:
2866-
to: /jadocs/tutorials/javascript/build-apps/get-started/
2878+
to: /ja/docs/tutorials/javascript/build-apps/get-started/
28672879
type: 301
28682880
/ja/get-started-using-node-js.html:
28692881
to: /ja/docs/tutorials/javascript/build-apps/get-started
@@ -2917,10 +2929,10 @@ code_of_conduct.ja:
29172929
to: /ja/docs/tutorials/javascript/build-apps/build-a-browser-wallet-in-javascript/
29182930
type: 301
29192931
/ja/docs/tutorials/javascript/build-a-browser-wallet-in-javascript:
2920-
to: /jadocs/tutorials/javascript/build-apps/build-a-browser-wallet-in-javascript/
2932+
to: /ja/docs/tutorials/javascript/build-apps/build-a-browser-wallet-in-javascript/
29212933
type: 301
29222934
/ja/docs/tutorials/javascript/build-a-browser-wallet-in-javascript/:
2923-
to: /jadocs/tutorials/javascript/build-apps/build-a-browser-wallet-in-javascript/
2935+
to: /ja/docs/tutorials/javascript/build-apps/build-a-browser-wallet-in-javascript/
29242936
type: 301
29252937
/ja/build-a-desktop-wallet-in-javascript.html:
29262938
to: /ja/docs/tutorials/javascript/build-apps/build-a-desktop-wallet-in-javascript

0 commit comments

Comments
 (0)