diff --git a/src/lib/menu/menu-errors.ts b/src/lib/menu/menu-errors.ts
index ed6d9895a6d..17fd90e483b 100644
--- a/src/lib/menu/menu-errors.ts
+++ b/src/lib/menu/menu-errors.ts
@@ -11,7 +11,7 @@
* @docs-private
*/
export function throwMatMenuMissingError() {
- throw Error(`mat-menu-trigger: must pass in an mat-menu instance.
+ throw Error(`matMenuTriggerFor: must pass in an mat-menu instance.
Example:
@@ -24,8 +24,8 @@ export function throwMatMenuMissingError() {
* @docs-private
*/
export function throwMatMenuInvalidPositionX() {
- throw Error(`x-position value must be either 'before' or after'.
- Example: `);
+ throw Error(`xPosition value must be either 'before' or after'.
+ Example: `);
}
/**
@@ -34,6 +34,6 @@ export function throwMatMenuInvalidPositionX() {
* @docs-private
*/
export function throwMatMenuInvalidPositionY() {
- throw Error(`y-position value must be either 'above' or below'.
- Example: `);
+ throw Error(`yPosition value must be either 'above' or below'.
+ Example: `);
}