# UE5 MVVM Documentation Typos

**URL:** <https://forums.unrealengine.com/t/ue5-mvvm-documentation-typos/1289076>\
**Category:** Programming & Scripting\
**Tags:** documentation-bug, unreal-engine, documentation, bug-report\
**Created:** [September 9, 2023, 1:55pm UTC](https://forums.unrealengine.com/t/ue5-mvvm-documentation-typos/1289076 "2023-09-09T13:55:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![KeanuVentura](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/keanuventura/32/748906_2.png) [@KeanuVentura](https://forums.unrealengine.com/u/KeanuVentura)\
**Post date:** [September 9, 2023, 1:55pm UTC](https://forums.unrealengine.com/t/ue5-mvvm-documentation-typos/1289076/1 "2023-09-09T13:55:35Z")

</div>

Theres typos in the Example Section

> **[UMG Viewmodel](https://docs.unrealengine.com/5.1/en-US/umg-viewmodel/)**
>
> Use Viewmodels to handle events and maintain a manifest for the variables in your UI.

```auto
    void SetCurrentHealth(int32 **NewCurrentHealth** )
    {
        if (UE_MVVM_SET_PROPERTY_VALUE(CurrentHealth, **nNewCurrentHealth** ))
        {
            UE_MVVM_BROADCAST_FIELD_VALUE_CHANGED(GetHealthPercent);
        }
    }

    void SetMaxHealth(int32 **newMaxHealth** )
    {
        if (UE_MVVM_SET_PROPERTY_VALUE(MaxHealth, NewMaxHealth))
        {
            UE_MVVM_BROADCAST_FIELD_VALUE_CHANGED(GetHealthPercent);
        }
    }

```

Fixed version should be:

```auto
    void SetCurrentHealth(int32 NewCurrentHealth)
    {
        if (UE_MVVM_SET_PROPERTY_VALUE(CurrentHealth, NewCurrentHealth))
        {
            UE_MVVM_BROADCAST_FIELD_VALUE_CHANGED(GetHealthPercent);
        }
    }

    void SetMaxHealth(int32 NewMaxHealth)
    {
        if (UE_MVVM_SET_PROPERTY_VALUE(MaxHealth, NewMaxHealth))
        {
            UE_MVVM_BROADCAST_FIELD_VALUE_CHANGED(GetHealthPercent);
        }
    }

```

---

<div class="post-metadata">

**Author:** ![HiShirley](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/hishirley/32/1016961_2.png) [@HiShirley](https://forums.unrealengine.com/u/HiShirley)\
**Post date:** [November 7, 2023, 9:06pm UTC](https://forums.unrealengine.com/t/ue5-mvvm-documentation-typos/1289076/2 "2023-11-07T21:06:32Z")

</div>

Thanks for reporting. The relevant pages have been fixed.
