Skip to content

Commit a3e4fa2

Browse files
jzk-onshiftJohn Karaplismikehoffms
authored
Remove parameter from console.groupEnd() (#3517)
* remove parameter from groupEnd * comment re typos * fix typos from demo page --------- Co-authored-by: John Karaplis <john.karaplis@shiftkey.com> Co-authored-by: Michael S. Hoffman <v-mihoffman@microsoft.com>
1 parent 0ef6acc commit a3e4fa2

3 files changed

Lines changed: 8 additions & 11 deletions

File tree

microsoft-edge/devtools/console/api.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ console.info('Leo');
293293
console.info('Mike');
294294
console.info('Don');
295295
console.info('Raph');
296-
console.groupEnd(label);
296+
console.groupEnd();
297297
```
298298

299299

@@ -327,7 +327,7 @@ console.groupCollapsed(label)
327327
Stops visually grouping messages. See the [group](#group) method.
328328

329329
```javascript
330-
console.groupEnd(label)
330+
console.groupEnd()
331331
```
332332

333333
<br/><br/>

microsoft-edge/devtools/console/console-log.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -218,8 +218,8 @@ console.log('Arthur');
218218
console.log('Marvin');
219219
console.groupCollapsed("Hidden");
220220
console.log('(Frankie & Benjy)');
221-
console.groupEnd("Hidden");
222-
console.groupEnd("Passengers: Heart of Gold");
221+
console.groupEnd();
222+
console.groupEnd();
223223

224224

225225
// Example 2:
@@ -230,7 +230,7 @@ let technologies = {
230230
for (tech in technologies) {
231231
console.groupCollapsed(tech);
232232
technologies[tech].forEach(t => console.log(t));
233-
console.groupEnd(tech);
233+
console.groupEnd();
234234
}
235235
```
236236

microsoft-edge/devtools/console/index.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -95,16 +95,13 @@ console.log(document.body.getBoundingClientRect());
9595
// prints the geometry of the document body as a table
9696
console.table(document.body.getBoundingClientRect());
9797

98-
// shows a list of techologies as a collapsed group
98+
// shows a list of technologies as a collapsed group
9999
let technologies = ["HTML", "CSS", "SVG", "ECMAScript"];
100-
console.groupCollapsed('Technolgies');
100+
console.groupCollapsed('Technologies');
101101
technologies.forEach(tech => {console.info(tech);})
102-
console.groupEnd('Technolgies');
102+
console.groupEnd();
103103
```
104104

105-
<!-- typos in the demo page are preserved above, at `Technolgies` -->
106-
107-
108105
To log information to display in the Console:
109106

110107
1. Open the demo webpage [Console messages examples: log, info, error and warn](https://microsoftedge.github.io/Demos/devtools-console/logging-demo.html) in a new window or tab.

0 commit comments

Comments
 (0)