Skip to content

Commit 8dce6bd

Browse files
authored
Fix example calculation (#3741)
1 parent 26b4e5f commit 8dce6bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sqlx-core/src/pool/options.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,7 @@ impl<DB: Database> PoolOptions<DB> {
484484
/// .await?;
485485
///
486486
/// // Close the connection if the backend memory usage exceeds 256 MiB.
487-
/// Ok(total_memory_usage <= (2 << 28))
487+
/// Ok(total_memory_usage <= (1 << 28))
488488
/// }))
489489
/// .connect("postgres:// …").await?;
490490
/// # Ok(())

0 commit comments

Comments
 (0)