From 720a01ffc10db1fd932ffac2918ae0f11032e9f8 Mon Sep 17 00:00:00 2001 From: Edgar Luque Date: Thu, 6 Jul 2023 12:33:00 +0200 Subject: [PATCH] fix radme --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index dd82bd6..c19cfd2 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,9 @@ A ddnet / teeworlds configuration parser. It recognizes the available options by parsing source files with `MACRO_CONFIG_` lines such as `src/engine/shared/config_variables.h`. -```rs +```rust +use teeconfig::parse_config_variables; + let header_source = include_str!("../config_variables.h"); let vars = parse_config_variables(header_source).unwrap(); assert!(!vars.is_empty())