Skip to content

Commit

Permalink
spell
Browse files Browse the repository at this point in the history
  • Loading branch information
levkk committed Oct 16, 2024
1 parent 7317a54 commit 5086a04
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/docs/getting-started.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Getting started

Rust Web Framework (also called Rwf) has very few dependencies and is easy to install and use.
Rust Web Framework (Rwf for short) has very few dependencies and is easy to install and use.

## Install Rust

Expand Down Expand Up @@ -55,7 +55,7 @@ Adding this declaration in your source files will make handling imports easier,

Rwf controllers are defined as Rust structs which implement the `Controller` trait. The trait is asynchronous, hence the `#[async_trait]` macro[^2],
and has only one method you need to implement: `async fn handle`. This method
acccepts an HTTP `Request`, and must return an HTTP `Response`.
accepts an HTTP `Request`, and must return an HTTP `Response`.

In this example, we are returning `HTTP 200 - OK` with the body `<h1>My first Rwf app</h1>`. This is not strictly valid HTML,
but it'll work in all browsers for our demo purposes.
Expand Down

0 comments on commit 5086a04

Please sign in to comment.