We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 14252af commit 4c0ee2cCopy full SHA for 4c0ee2c
tokio-postgres/src/client.rs
@@ -322,7 +322,7 @@ impl Client {
322
/// ```no_run
323
/// # async fn async_main(client: &tokio_postgres::Client) -> Result<(), tokio_postgres::Error> {
324
/// use tokio_postgres::types::ToSql;
325
- /// use futures::{pin_mut, StreamExt};
+ /// use futures::{pin_mut, TryStreamExt};
326
///
327
/// let params: Vec<String> = vec![
328
/// "first param".into(),
@@ -334,7 +334,7 @@ impl Client {
334
/// ).await?;
335
336
/// pin_mut!(it);
337
- /// while let Some(row) = it.next().await.transpose()? {
+ /// while let Some(row) = it.try_next().await? {
338
/// let foo: i32 = row.get("foo");
339
/// println!("foo: {}", foo);
340
/// }
0 commit comments