Skip to content

Commit 6ae2b30

Browse files
Update comment in update function to clarify labware fetching
1 parent f7e3919 commit 6ae2b30

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

presentation/slides.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ pub(crate) async fn update(
379379
let labware_result_set = labware_query_result.unwrap();
380380

381381
if labware_result_set.rows_affected() > 0 {
382-
// ... use sqlx to fetch the location here...
382+
// ... use sqlx to fetch the labware here...
383383
return Ok(Labware::new(
384384
labware.id,
385385
labware.barcode.clone(),
@@ -390,11 +390,11 @@ pub(crate) async fn update(
390390
}
391391
```
392392
```rs {*}{lines:true}
393-
///! This is NOT our code. This is just to show you something 😉
394393
pub(crate) async fn update(
395394
labware: &Labware,
396395
connection: &Pool<Sqlite>,
397396
) -> Result<Labware, LabwhereError> {
397+
// This is NOT our code. This is just to show you something 😉
398398
match sqlx::query("UPDATE labwares SET location_id = ? WHERE id = ?")
399399
.bind(labware.location_id)
400400
.bind(labware.id)

0 commit comments

Comments
 (0)