🎥 Make videos programmatically with React
Correct the wrong function name in the documentation
smlkdev1dca9ea63c44
diff --git a/packages/docs/docs/paths/reverse-path.md b/packages/docs/docs/paths/reverse-path.mdindex 42f69bde1b..51bcad702a 100644--- a/packages/docs/docs/paths/reverse-path.md+++ b/packages/docs/docs/paths/reverse-path.md@@ -9,18 +9,18 @@ _Part of the [`@remotion/paths`](/docs/paths) package._Reverses a path so the end and start are switched.```tsx twoslash-import { getLength } from "@remotion/paths";+import { reversePath } from "@remotion/paths";-const reversedPath = getLength("M 0 0 L 100 0");+const reversedPath = reversePath("M 0 0 L 100 0");console.log(reversedPath); // "L 100 0 M 0 0"```The function will throw if the path is invalid:```tsx twoslash-import { getLength } from "@remotion/paths";+import { reversePath } from "@remotion/paths";// ---cut----getLength("remotion"); // Error: Malformed path data: ...+reversePath("remotion"); // Error: Malformed path data: ...```## Credits