Skip to content

Commit 9b967dd

Browse files
committed
Merge pull request micropython#655 from Rosuav/master
Two small changes
2 parents b294a7e + 4867413 commit 9b967dd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

py/objstr.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ void mp_str_print_quoted(void (*print)(void *env, const char *fmt, ...), void *e
6868
// this escapes characters, but it will be very slow to print (calling print many times)
6969
bool has_single_quote = false;
7070
bool has_double_quote = false;
71-
for (const byte *s = str_data, *top = str_data + str_len; (!has_single_quote || !has_double_quote) && s < top; s++) {
71+
for (const byte *s = str_data, *top = str_data + str_len; !has_double_quote && s < top; s++) {
7272
if (*s == '\'') {
7373
has_single_quote = true;
7474
} else if (*s == '"') {

py/qstr.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
* THE SOFTWARE.
2525
*/
2626

27-
// See qstrraw.h for a list of qstr's that are available as constants.
27+
// See qstrdefs.h for a list of qstr's that are available as constants.
2828
// Reference them as MP_QSTR_xxxx.
2929
//
3030
// Note: it would be possible to define MP_QSTR_xxx as qstr_from_str_static("xxx")

0 commit comments

Comments
 (0)