diff --git a/doc/bitbake-user-manual/bitbake-user-manual-ref-variables.rst b/doc/bitbake-user-manual/bitbake-user-manual-ref-variables.rst
index 4baea1550..5b163b74e 100644
--- a/doc/bitbake-user-manual/bitbake-user-manual-ref-variables.rst
+++ b/doc/bitbake-user-manual/bitbake-user-manual-ref-variables.rst
@@ -1023,16 +1023,16 @@ overview of their function and contents.
       BitBake to ignore all recipe and recipe append files in
       ``recipes-bsp`` directory (recursively) of ``meta-ti-bsp``::
 
-         BBMASK = "${BBFILE_PATTERN_meta-ti-bsp}/recipes-bsp/"
+         BBMASK = "^${LAYERDIR_meta-ti-bsp}/recipes-bsp/"
 
       If you want to mask out multiple directories or recipes, you can
       specify multiple regular expression fragments. This next example
       masks out multiple directories and individual recipes::
 
-         BBMASK += "${BBFILE_PATTERN_meta-ti-bsp}/recipes-graphics/libgal/"
-         BBMASK += "${BBFILE_PATTERN_openembedded-layer}/recipes-support/"
-         BBMASK += "${BBFILE_PATTERN_openembedded-layer}/.*/openldap"
-         BBMASK += "${BBFILE_PATTERN_meta-ti-bsp}/.*/optee.*\.bbappend"
+         BBMASK += "^${LAYERDIR_meta-ti-bsp}/recipes-graphics/libgal/"
+         BBMASK += "^${LAYERDIR_meta-oe}/recipes-support/"
+         BBMASK += "^${LAYERDIR_meta-oe}/.*/openldap"
+         BBMASK += "^${LAYERDIR_meta-ti-bsp}/.*/optee.*\.bbappend"
 
       This masks:
 
@@ -1053,12 +1053,12 @@ overview of their function and contents.
          directory and not a file, you must end the expression with a trailing
          slash. That is::
 
-            BBMASK += "${BBFILE_PATTERN_meta-ti-bsp}/recipes-graphics/libgal/"
+            BBMASK += "^${LAYERDIR_meta-ti-bsp}/recipes-graphics/libgal/"
 
          Will match anything under ``recipes-graphics/ligbal/`` directory of
          ``meta-ti-bsp``. And::
 
-            BBMASK += "${BBFILE_PATTERN_meta-ti-bsp}/recipes-graphics/libgal"
+            BBMASK += "^${LAYERDIR_meta-ti-bsp}/recipes-graphics/libgal"
 
          Will match in ``meta-ti-bsp`` any file prefixed with ``libgal`` in
          ``recipes-graphics/`` and any directory (recursively; and its
@@ -1075,8 +1075,7 @@ overview of their function and contents.
       .. note::
 
          Because these are complete regular expressions, failing to start the
-         pattern with a ``^`` sign (which is usually the first character in
-         :term:`BBFILE_PATTERN`) means it can match *any* portion of a path.
+         pattern with a ``^`` sign means it can match *any* portion of a path.
          Take the following as an example::
 
             BBMASK = "recipes-graphics/libgal/"
@@ -1110,7 +1109,7 @@ overview of their function and contents.
          makes sure that doesn't happen. However, this doesn't prevent matching
          a directory ``recipes-graphics/libgal/`` from another layer.
 
-         Again, we highly recommend using :term:`BBFILE_PATTERN` in the
+         Again, we highly recommend using ``^`` and :term:`LAYERDIR` in the
          expressions to specify absolute paths specific to one layer.
 
    :term:`BBMULTICONFIG`
