Skip to content

Commit d9c16c5

Browse files
authored
docs: updated the comments in which removed the redundant phrase and added the comma to linked two sentence (#27400)
1 parent 0340a41 commit d9c16c5

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/material/menu/menu-item.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ import {MatMenuPanel, MAT_MENU_PANEL} from './menu-panel';
3434
const _MatMenuItemBase = mixinDisableRipple(mixinDisabled(class {}));
3535

3636
/**
37-
* Single item inside of a `mat-menu`. Provides the menu item styling and accessibility treatment.
37+
* Single item inside a `mat-menu`. Provides the menu item styling and accessibility treatment.
3838
*/
3939
@Component({
4040
selector: '[mat-menu-item]',
@@ -118,7 +118,7 @@ export class MatMenuItem
118118

119119
ngAfterViewInit() {
120120
if (this._focusMonitor) {
121-
// Start monitoring the element so it gets the appropriate focused classes. We want
121+
// Start monitoring the element, so it gets the appropriate focused classes. We want
122122
// to show the focus style for menu items only when the focus was not caused by a
123123
// mouse or touch interaction.
124124
this._focusMonitor.monitor(this._elementRef, false);
@@ -166,7 +166,7 @@ export class MatMenuItem
166166
const clone = this._elementRef.nativeElement.cloneNode(true) as HTMLElement;
167167
const icons = clone.querySelectorAll('mat-icon, .material-icons');
168168

169-
// Strip away icons so they don't show up in the text.
169+
// Strip away icons, so they don't show up in the text.
170170
for (let i = 0; i < icons.length; i++) {
171171
icons[i].remove();
172172
}

src/material/schematics/ng-generate/mdc-migration/rules/tree-traversal.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export function parseTemplate(template: string, templateUrl: string = ''): Parse
6868
}
6969

7070
/**
71-
* Replaces the start tag of the given Element node inside of the html document with a new tag name.
71+
* Replaces the start tag of the given Element node inside the html document with a new tag name.
7272
*
7373
* @param html The full html document.
7474
* @param node The Element node to be updated.
@@ -80,7 +80,7 @@ export function replaceStartTag(html: string, node: TmplAstElement, tag: string)
8080
}
8181

8282
/**
83-
* Replaces the end tag of the given Element node inside of the html document with a new tag name.
83+
* Replaces the end tag of the given Element node inside the html document with a new tag name.
8484
*
8585
* @param html The full html document.
8686
* @param node The Element node to be updated.

0 commit comments

Comments
 (0)