diff --git a/docs/snippets/all/archetypes/leaf_transforms3d_combined.cpp b/docs/snippets/all/archetypes/leaf_transforms3d_combined.cpp index 1983d3f13e77..931d9d52c965 100644 --- a/docs/snippets/all/archetypes/leaf_transforms3d_combined.cpp +++ b/docs/snippets/all/archetypes/leaf_transforms3d_combined.cpp @@ -22,15 +22,14 @@ int main() { "world/box", rerun::Transform3D::from_rotation(rerun::RotationAxisAngle{ {0.0f, 0.0f, 1.0f}, - rerun::Angle::degrees(static_cast(i) * 2.0f) - }) + rerun::Angle::degrees(static_cast(i) * 2.0f)}) ); // Log an leaf transform which affects only the box. rec.log( "world/box", rerun::LeafTransforms3D().with_translations( - {{0, 0, fabs(static_cast(i) * 0.1f - 5.0f) - 5.0f}} + {{0.0f, 0.0f, std::abs(static_cast(i) * 0.1f - 5.0f) - 5.0f}} ) ); }