add missing documentation in config.lua and application source code

This commit is contained in:
neon_arch 2023-04-30 19:24:16 +03:00
parent 137c62ed5f
commit 4a505fb1d5
6 changed files with 50 additions and 18 deletions

View file

@ -32,7 +32,7 @@ use handlebars::Handlebars;
/// use websurfx::run;
///
/// let listener = TcpListener::bind("127.0.0.1:8080").expect("Failed to bind address");
/// let server = run(listener).expect("Failed to start server");
/// let server = run(listener,config).expect("Failed to start server");
/// ```
pub fn run(listener: TcpListener, config: Config) -> std::io::Result<Server> {
let mut handlebars: Handlebars = Handlebars::new();