From 3d5ef1a94ec80b3fe9f62a7ce16f733186227ac7 Mon Sep 17 00:00:00 2001 From: Palash Tyagi <23239946+Magnus167@users.noreply.github.com> Date: Sat, 26 Apr 2025 02:38:23 +0100 Subject: [PATCH] Fix string conversion in example code for clarity and consistency --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 0388311..c3a69da 100644 --- a/README.md +++ b/README.md @@ -47,13 +47,13 @@ use rustframe::{ let n_periods = 4; // Four business days starting 2024‑01‑02 -a let dates: Vec = - BDatesList::from_n_periods("2024-01-02", BDateFreq::Daily, n_periods) +let dates: Vec = + BDatesList::from_n_periods("2024-01-02".to_string(), BDateFreq::Daily, n_periods) .unwrap() .list() .unwrap(); -let col_names = vec!["a".into(), "b".into()]; +let col_names = vec!["a".to_string(), "b".to_string()]; let ma = Matrix::from_cols(vec![ vec![1.0, 2.0, 3.0, 4.0],