Skip to content

Commit

Permalink
fix: respond to @lisaychuang's feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-north committed Aug 2, 2018
1 parent 8fba2b3 commit ba7ba41
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ class Logger {
* }
*
* logger.log('begin'); // "begin"
* fooFunction(); // "[foo]: hello"
* // "[foo]: world"
* fooFunction(); // "[foo] hello"
* // "[foo] world"
* logger.log('end'); // "end"
*
* ```
Expand Down Expand Up @@ -189,7 +189,7 @@ class Logger {
allMsgs += `%c[${msg}]`;
allStyles.push(style);
}
if (allMsgs.length > 0) allMsgs += ': ';
if (allMsgs.length > 0) allMsgs += ' ';
for (let [msg, style] of this.msgsAndStyles) {
allMsgs += `%c ${msg}`;
allStyles.push(style);
Expand Down

0 comments on commit ba7ba41

Please sign in to comment.