sparckles / Robyn

Robyn is a Super Fast Async Python Web Framework with a Rust runtime.
https://robyn.tech/
BSD 2-Clause "Simplified" License
4.46k stars 231 forks source link

docs: fix typos in API Reference documentation #1015

Closed nicdgonzalez closed 2 weeks ago

nicdgonzalez commented 2 weeks ago

Description

This PR fixes a mistake found in the documentation for views. (I tried to match the terminology and style of surrounding documentation, but feel free to change the wording if you need to.)

Summary

This PR changes:

Using the @app.view decorator.

to:

Using the app.add_view method.

to more accurately describe the following code sample:

 from .views import sample_view

 ...
 ...

 app.add_view("/", sample_view)

PR Checklist

Please ensure that:

Pre-Commit Instructions:

vercel[bot] commented 2 weeks ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
robyn ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 6, 2024 4:12pm
sansyrox commented 2 weeks ago

Thank you @nicdgonzalez 😄