Custom Sky example from docs doesn't compile

I’m trying to implement this example from the docs Creating a custom sky | High Definition RP | 12.1.15

HDRP 12.1
Unity 2021.3.20f1

In the NewSkyRenderer.cs it makes a call to GetSkyIntensity() which doesn’t exist.

using UnityEngine.Rendering;
using UnityEngine.Rendering.HighDefinition;
...
float intensity = GetSkyIntensity(newSky, builtinParams.debugSettings);

Literally copying and pasting the example code.

https://docs.unity3d.com/Packages/com.unity.render-pipelines.high-definition@8.3/api/UnityEngine.Rendering.HighDefinition.SkyRenderer.html