From 07a732c78490f86a3c2b44fbaadcf11f40caa075 Mon Sep 17 00:00:00 2001 From: Sasha Date: Wed, 4 Dec 2024 15:30:02 -0500 Subject: [PATCH] Update documentation about read_vec function in SP1 gitbook --- book/writing-programs/inputs-and-outputs.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/book/writing-programs/inputs-and-outputs.md b/book/writing-programs/inputs-and-outputs.md index ce8dd62f6f..3fe628b0db 100644 --- a/book/writing-programs/inputs-and-outputs.md +++ b/book/writing-programs/inputs-and-outputs.md @@ -18,7 +18,7 @@ let b = sp1_zkvm::io::read::(); let c = sp1_zkvm::io::read::(); ``` -Note that `T` must implement the `serde::Serialize` and `serde::Deserialize` trait. If you want to read bytes directly, you can also use the `sp1_zkvm::io::read_vec` method. +Note that `T` must implement the `serde::Serialize` and `serde::Deserialize` trait. If you want to read bytes directly, you can also use the `sp1_zkvm::io::read_vec` method. `read_vec` does not perform serialization and is substantially faster for reading in bytes directly. ```rust,noplayground let my_vec = sp1_zkvm::io::read_vec();