Skip to content

Commit b0b154f

Browse files
pengpeng05xiaofei86
authored andcommitted
Edit some comments
1 parent 671d50e commit b0b154f

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

CarbonObjC/CarbonObjC/CBNObjectDefinition.h

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,13 +83,14 @@ typedef NSObject* _Nonnull(^CBNFactoryDefineCompleted)(CBNObjectContext *context
8383

8484
@interface CBNAttributeDefinitionBuilder : CBNActionDefinitionBuilder
8585

86-
/// Define object's scope is `CBNObjectScope.prototype`. Default scope.
86+
/// Set the local scope (life cycle) of the object
8787
@property (nonatomic, copy, readonly) CBNActionDefinitionBuilder *(^prototype)(void);
88-
/// Define object's scope is `CBNObjectScope.singleton`.
88+
/// Set the singleton scope (life cycle) of the object
8989
@property (nonatomic, copy, readonly) CBNActionDefinitionBuilder *(^singleton)(void);
90-
/// Define object's scope is `CBNObjectScope.singletonWeak`.
90+
/// Set the weak reference singleton scope (life cycle) of the object
9191
@property (nonatomic, copy, readonly) CBNActionDefinitionBuilder *(^singletonWeak)(void);
9292

93+
/// Set the scope (life cycle) of the object
9394
- (CBNActionDefinitionBuilder *(^)(CBNObjectScope *scope))scope;
9495

9596
@end
@@ -99,7 +100,7 @@ typedef NSObject* _Nonnull(^CBNFactoryDefineCompleted)(CBNObjectContext *context
99100

100101
- (CBNAutowiredDefinitionBuilder *(^)(NSString *property))propertyName;
101102

102-
/// Note: The propertiesName array will overwrite the previous propertyName, so multiple propertyNames or a single propertiesName array are usually used.
103+
/// Note: The propertiesName array will overwrite the previous propertyName, so when setting multiple properties, either use multiple propertyNames or a single propertiesName array.
103104
- (CBNAttributeDefinitionBuilder *(^)(NSArray<NSString *> *properties))propertiesName;
104105

105106
@end

0 commit comments

Comments
 (0)