add missing documentation in config.lua and application source code
This commit is contained in:
parent
137c62ed5f
commit
4a505fb1d5
6 changed files with 50 additions and 18 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue