summaryrefslogtreecommitdiffstats
path: root/generic/tclStringObj.c
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2024-09-21 08:41:51 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2024-09-21 08:41:51 (GMT)
commit475d0498c66c8bbc7a0acbb9d1c58abe3fa78b52 (patch)
tree19994fe7776bae05ebec5874f3239f8992393498 /generic/tclStringObj.c
parent4248deef0b06ef0e95625e3b40a677427dc55f78 (diff)
downloadtcl-475d0498c66c8bbc7a0acbb9d1c58abe3fa78b52.zip
tcl-475d0498c66c8bbc7a0acbb9d1c58abe3fa78b52.tar.gz
tcl-475d0498c66c8bbc7a0acbb9d1c58abe3fa78b52.tar.bz2
Fix ungrammatical doubling of words in commentsminor
Diffstat (limited to 'generic/tclStringObj.c')
-rw-r--r--generic/tclStringObj.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/tclStringObj.c b/generic/tclStringObj.c
index f4428d1..059f8dd 100644
--- a/generic/tclStringObj.c
+++ b/generic/tclStringObj.c
@@ -597,15 +597,15 @@ TclGetUniChar(
}
/*
- * Optimize the ByteArray case: N need need to convert to a string to
- * perform the indexing operation.
+ * Optimize the ByteArray case: no need to convert to a string to
+ * perform the indexing operation.
*/
if (TclIsPureByteArray(objPtr)) {
Tcl_Size length = 0;
unsigned char *bytes = Tcl_GetBytesFromObj(NULL, objPtr, &length);
if (index >= length) {
- return -1;
+ return -1;
}
return bytes[index];