From 0034c07f72de3ec8ebe6c7bcd5c90bae2ee36c15 Mon Sep 17 00:00:00 2001 From: Asnowww <23301095@bjtu.edu.cn> Date: Fri, 22 Aug 2025 17:33:39 +0800 Subject: [PATCH] typos check --- .../src/main/java/org/apache/fory/codegen/Expression.java | 2 +- .../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 582c236129..0d9e236e22 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 ExprCode doGenCode(CodegenContext ctx) { 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 49910d9584..13e1e3d52c 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 Code.ExprCode doGenCode(CodegenContext ctx) { 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 2a1e2e5173..d98a248d53 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 == TypeId.STRING: return buffer.read_string()