From b893b44ba993a20340654708532f16237a0c7888 Mon Sep 17 00:00:00 2001 From: MaxOhn Date: Mon, 1 Apr 2024 11:36:09 +0200 Subject: [PATCH] fix doctest --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 3d72fdd0..2388faf7 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -28,7 +28,7 @@ //! let stars = diff_attrs.stars(); //! //! // Calculate performance attributes -//! let perf_attrs = rosu_pp::Performance::from_attributes(diff_attrs) +//! let perf_attrs = rosu_pp::Performance::new(diff_attrs) //! // To speed up the calculation, we used the previous attributes. //! // **Note** that this should only be done if the map and all difficulty //! // settings stay the same, otherwise the final attributes will be incorrect!