diff --git a/cocos/2d/CCNode.h b/cocos/2d/CCNode.h index 0a0e070ac8..bc4d446a02 100644 --- a/cocos/2d/CCNode.h +++ b/cocos/2d/CCNode.h @@ -739,9 +739,9 @@ public: * * If the child is added to a 'running' node, then 'onEnter' and 'onEnterTransitionDidFinish' will be called immediately. * - * @param child A child node. - * @param zOrder Z order for drawing priority. Please refer to `setLocalZOrder(int)`. - * @param tag An integer to identify the node easily. Please refer to `setTag(int)`. + * @param child A child node. + * @param localZOrder Z order for drawing priority. Please refer to `setLocalZOrder(int)`. + * @param tag An integer to identify the node easily. Please refer to `setTag(int)`. * * Please use `addChild(Node* child, int localZOrder, const std::string &name)` instead. */ diff --git a/cocos/audio/include/AudioEngine.h b/cocos/audio/include/AudioEngine.h index 9ab5ac13f9..078075c91b 100644 --- a/cocos/audio/include/AudioEngine.h +++ b/cocos/audio/include/AudioEngine.h @@ -194,10 +194,11 @@ public: /** * Sets the current playback position of an audio instance. * - * @param audioID An audioID returned by the play2d function. + * @param audioID An audioID returned by the play2d function. + * @param sec The offset in seconds from the start to seek to. * @return */ - static bool setCurrentTime(int audioID, float time); + static bool setCurrentTime(int audioID, float sec); /** * Gets the current playback position of an audio instance. diff --git a/cocos/base/CCMap.h b/cocos/base/CCMap.h index edecf4074e..0f2ff5e2a1 100644 --- a/cocos/base/CCMap.h +++ b/cocos/base/CCMap.h @@ -47,7 +47,7 @@ NS_CC_BEGIN /** * Similar to std::unordered_map, but it will manage reference count automatically internally. * Which means it will invoke Ref::retain() when adding an element, and invoke Ref::release() when removing an element. - * @warn The element should be `Ref` or its sub-class. + * @warning The element should be `Ref` or its sub-class. * @lua NA */ template