Skip to content

Commit 4d82238

Browse files
committed
[MERGE #5659 @rhuanjl] Fix a couple of typos in Jsrt Header comments
Merge pull request #5659 from rhuanjl:updateHeaders This PR fixes a few typos I noticed in the Jsrt Header comments as well as one pointed out by @RealTrisT in #5615
2 parents 705338b + 63ca567 commit 4d82238

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

lib/Jsrt/ChakraCommon.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ typedef unsigned short uint16_t;
217217
/// </summary>
218218
JsErrorInvalidContext,
219219
/// <summary>
220-
/// Module evaluation is called in wrong context.
220+
/// The Module HostInfoKind provided was invalid.
221221
/// </summary>
222222
JsInvalidModuleHostInfoKind,
223223
/// <summary>
@@ -237,6 +237,7 @@ typedef unsigned short uint16_t;
237237
/// Module was not yet evaluated when JsGetModuleNamespace was called.
238238
/// </summary>
239239
JsErrorModuleNotEvaluated,
240+
240241
/// <summary>
241242
/// Category of errors that relates to errors occurring within the engine itself.
242243
/// </summary>
@@ -922,7 +923,7 @@ typedef unsigned short uint16_t;
922923
/// <remarks>
923924
/// Removes a reference to a <c>JsRef</c> handle that was created by <c>JsAddRef</c>.
924925
/// </remarks>
925-
/// <param name="ref">The object to add a reference to.</param>
926+
/// <param name="ref">The object to remove the reference from.</param>
926927
/// <param name="count">The object's new reference count (can pass in null).</param>
927928
/// <returns>
928929
/// The code <c>JsNoError</c> if the operation succeeded, a failure code otherwise.
@@ -1051,7 +1052,7 @@ typedef unsigned short uint16_t;
10511052
_Out_ JsRuntimeHandle *runtime);
10521053

10531054
/// <summary>
1054-
/// Tells the runtime to do any idle processing it need to do.
1055+
/// Tells the runtime to do any idle processing it needs to do.
10551056
/// </summary>
10561057
/// <remarks>
10571058
/// <para>

lib/Jsrt/ChakraCore.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ typedef JsErrorCode(CHAKRA_CALLBACK * FetchImportedModuleCallBack)(_In_ JsModule
136136
/// User implemented callback to fetch imported modules dynamically in scripts.
137137
/// </summary>
138138
/// <remarks>
139-
/// The callback is invoked on the current runtime execution thread, therefore execution is blocked untill
139+
/// The callback is invoked on the current runtime execution thread, therefore execution is blocked until
140140
/// the callback completes. Notify the host to fetch the dependent module. This is used for the dynamic
141141
/// import() syntax.
142142
///

0 commit comments

Comments
 (0)