Constipation and comment spelling fixes.

This commit is contained in:
brendan%mozilla.org 2003-05-30 20:23:59 +00:00
Родитель 7f7b9c2c97
Коммит 0f0aa3da9c
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -431,7 +431,7 @@ static JSClass date_class = {
/* for use by date_parse */
static char* wtb[] = {
static const char* wtb[] = {
"am", "pm",
"monday", "tuesday", "wednesday", "thursday", "friday",
"saturday", "sunday",
@ -1131,7 +1131,7 @@ date_makeTime(JSContext *cx, JSObject *obj, uintN argc, jsval *argv,
* d.setMilliseconds()" returns NaN. Blech.
*/
if (argc == 0)
argc = 1; /* should be safe, because length of all settors is 1 */
argc = 1; /* should be safe, because length of all setters is 1 */
else if (argc > maxargs)
argc = maxargs; /* clamp argc */
@ -1260,7 +1260,7 @@ date_makeDate(JSContext *cx, JSObject *obj, uintN argc,
/* see complaint about ECMA in date_MakeTime */
if (argc == 0)
argc = 1; /* should be safe, because length of all settors is 1 */
argc = 1; /* should be safe, because length of all setters is 1 */
else if (argc > maxargs)
argc = maxargs; /* clamp argc */