diff --git a/content/learn/migration-guides/0.16-to-0.17.md b/content/learn/migration-guides/0.16-to-0.17.md index 962989eb9e..80aca3e1b6 100644 --- a/content/learn/migration-guides/0.16-to-0.17.md +++ b/content/learn/migration-guides/0.16-to-0.17.md @@ -2542,12 +2542,12 @@ To migrate tests, use: ```diff - let entity = Entity::from_raw(1); -+ let entity = Entity::from_row_u32(1).unwrap(); ++ let entity = Entity::from_raw_u32(1).unwrap(); ``` If you are creating entities manually in production, don't do that! Use `Entities::alloc` instead. -But if you must create one manually, either reuse a `EntityRow` you know to be valid by using `Entity::from_row` and `Entity::row`, or handle the error case of `None` returning from `Entity::from_row_u32(my_index)`. +But if you must create one manually, either reuse a `EntityRow` you know to be valid by using `Entity::from_row` and `Entity::row`, or handle the error case of `None` returning from `Entity::from_raw_u32(my_index)`. #### Generation