docs: add doccomment for get_courses

This commit is contained in:
Youwen Wu 2024-09-12 14:20:42 -07:00
parent cdddd1937e
commit 5cb87b1adf
Signed by: youwen5
GPG key ID: 865658ED1FE61EC3

View file

@ -4,6 +4,7 @@ use time::serde::iso8601;
use time::OffsetDateTime; use time::OffsetDateTime;
impl CanvasClient { impl CanvasClient {
/// Get a list of courses the current user is enrolled in.
pub async fn get_courses(&self) -> Result<Vec<Course>, reqwest::Error> { pub async fn get_courses(&self) -> Result<Vec<Course>, reqwest::Error> {
let response = self let response = self
.client .client