Skip to content

Commit 3b45027

Browse files
committed
graphene: Rename Box2D::init_from_rect() to from_rect() for consistency
1 parent 1292dee commit 3b45027

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graphene/src/box2_d.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ impl Box2D {
9292
}
9393

9494
#[doc(alias = "graphene_box2d_init_from_rect")]
95-
pub fn init_from_rect(src: &Rect) -> Self {
95+
pub fn from_rect(src: &Rect) -> Self {
9696
assert_initialized_main_thread!();
9797
unsafe {
9898
let mut b = Self::uninitialized();

0 commit comments

Comments
 (0)