This is an automated email from the ASF dual-hosted git repository.
chaokunyang pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/fory.git
The following commit(s) were added to refs/heads/main by this push:
new 1735e4d3f chore: fix typos (#2496)
1735e4d3f is described below
commit 1735e4d3ffbb21886ef848e63992348d60794eb4
Author: Asnowww <[email protected]>
AuthorDate: Fri Aug 22 18:37:43 2025 +0800
chore: fix typos (#2496)
<!--
**Thanks for contributing to Fory.**
**If this is your first time opening a PR on fory, you can refer to
[CONTRIBUTING.md](https://github.com/apache/fory/blob/main/CONTRIBUTING.md).**
Contribution Checklist
- The **Apache Fory** community has requirements on the naming of pr
titles. You can also find instructions in
[CONTRIBUTING.md](https://github.com/apache/fory/blob/main/CONTRIBUTING.md).
- Fory has a strong focus on performance. If the PR you submit will have
an impact on performance, please benchmark it first and provide the
benchmark result here.
-->
## What does this PR do?
fix typos
<!-- Describe the purpose of this PR. -->
## Related issues
<!--
Is there any related issue? Please attach here.
- #xxxx0
- #xxxx1
- #xxxx2
-->
## Does this PR introduce any user-facing change?
<!--
If any user-facing interface changes, please [open an
issue](https://github.com/apache/fory/issues/new/choose) describing the
need to do so and update the document if necessary.
-->
- [ ] Does this PR introduce any public API change?
- [ ] Does this PR introduce any binary protocol compatibility change?
## Benchmark
<!--
When the PR has an impact on performance (if you don't know whether the
PR will have an impact on performance, you can submit the PR first, and
if it will have impact on performance, the code reviewer will explain
it), be sure to attach a benchmark data here.
-->
---
.../fory-core/src/main/java/org/apache/fory/codegen/Expression.java | 2 +-
.../main/java/org/apache/fory/format/encoder/ArrayDataForEach.java | 2 +-
python/pyfory/_serialization.pyx | 6 +++---
3 files changed, 5 insertions(+), 5 deletions(-)
diff --git
a/java/fory-core/src/main/java/org/apache/fory/codegen/Expression.java
b/java/fory-core/src/main/java/org/apache/fory/codegen/Expression.java
index 582c23612..0d9e236e2 100644
--- a/java/fory-core/src/main/java/org/apache/fory/codegen/Expression.java
+++ b/java/fory-core/src/main/java/org/apache/fory/codegen/Expression.java
@@ -2432,7 +2432,7 @@ public interface Expression {
action.apply(
new Reference(i),
new Reference(leftElemValue, leftElemType, true),
- // elemValue nullability check use isNullAt inside action, so
elemValueRef'nullable is
+ // elemValue nullability check uses isNullAt inside action, so
elemValueRef's nullable is
// false.
new Reference(rightElemValue, rightElemType, false));
ExprCode elementExprCode = elemExpr.genCode(ctx);
diff --git
a/java/fory-format/src/main/java/org/apache/fory/format/encoder/ArrayDataForEach.java
b/java/fory-format/src/main/java/org/apache/fory/format/encoder/ArrayDataForEach.java
index 49910d958..13e1e3d52 100644
---
a/java/fory-format/src/main/java/org/apache/fory/format/encoder/ArrayDataForEach.java
+++
b/java/fory-format/src/main/java/org/apache/fory/format/encoder/ArrayDataForEach.java
@@ -110,7 +110,7 @@ public class ArrayDataForEach extends AbstractExpression {
String i = freshNames[0];
String elemValue = freshNames[1];
String len = freshNames[2];
- // elemValue is only used in notNullAction, so set elemValueRef'nullable
to false.
+ // elemValue is only used in notNullAction, so set elemValueRef's nullable
to false.
Reference elemValueRef = new Reference(elemValue, elemType);
Code.ExprCode notNullElemExprCode =
notNullAction.apply(new Reference(i), elemValueRef).genCode(ctx);
diff --git a/python/pyfory/_serialization.pyx b/python/pyfory/_serialization.pyx
index 2a1e2e517..d98a248d5 100644
--- a/python/pyfory/_serialization.pyx
+++ b/python/pyfory/_serialization.pyx
@@ -388,9 +388,9 @@ cdef class TypeInfo:
for python `int`: `Int8/1632/64/128Serializer` for `int8/16/32/64/128`
each, and another
`IntSerializer` for `int` which will dispatch to different
`int8/16/32/64/128` type
according the actual value.
- We do not get the acutal type here, because it will introduce extra
computing.
+ We do not get the actual type here, because it will introduce extra
computing.
For example, we have want to get actual `Int8/16/32/64Serializer`, we must
check and
- extract the actutal here which will introduce cost, and we will do same
thing again
+ extract the actual here which will introduce cost, and we will do same
thing again
when serializing the actual data.
"""
cdef public object cls
@@ -1555,7 +1555,7 @@ cdef inline get_next_element(
typeinfo = type_resolver.read_typeinfo(buffer)
cdef int32_t type_id = typeinfo.type_id
# Note that all read operations in fast paths of
list/tuple/set/dict/sub_dict
- # ust match corresponding writing operations. Otherwise, ref tracking will
+ # must match corresponding writing operations. Otherwise, ref tracking will
# error.
if type_id == <int32_t>TypeId.STRING:
return buffer.read_string()
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]