Skip to content

Build your own AI office with Univer Office SDK. Bring editing, calculation, collaboration, and file processing into your product for people and AI agents. Built on an extensible open-source core.

docs(core): fix comments (#4056)

Jelfe03d904643c7
diff --git a/packages/core/src/services/command/command.service.ts b/packages/core/src/services/command/command.service.ts
index 471a5b2105..1514c85e6c 100644
--- a/packages/core/src/services/command/command.service.ts
+++ b/packages/core/src/services/command/command.service.ts
@@ -36,14 +36,14 @@ export enum CommandType {
*/
COMMAND = 0,
/**
- * MUTATION is the change made to the data saved to snapshot, such as inserting rows and columns,
- * modifying cell content, modifying filter ranges, etc. If you want to add collaborative editing capabilities to
- * Univer, it is the smallest unit of conflict resolution.
+ * OPERATION is the change made to data that is not saved to snapshot, without conflict resolution,
+ * such as modifying scroll position, modifying sidebar state, etc.
*/
OPERATION = 1,
/**
- * OPERATION is the change made to data that is not saved to snapshot, without conflict resolution,
- * such as modifying scroll position, modifying sidebar state, etc.
+ * MUTATION is the change made to the data saved to snapshot, such as inserting rows and columns,
+ * modifying cell content, modifying filter ranges, etc. If you want to add collaborative editing capabilities to
+ * Univer, it is the smallest unit of conflict resolution.
*/
MUTATION = 2,
}