summaryrefslogtreecommitdiffstats
path: root/ipc/src/sexp.rs
diff options
context:
space:
mode:
Diffstat (limited to 'ipc/src/sexp.rs')
-rw-r--r--ipc/src/sexp.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/ipc/src/sexp.rs b/ipc/src/sexp.rs
index 8386a827..771eee18 100644
--- a/ipc/src/sexp.rs
+++ b/ipc/src/sexp.rs
@@ -224,7 +224,7 @@ impl Sexp {
}
}
-
+ /// Writes a serialized version of the object to `o`.
pub fn serialize(&self, o: &mut dyn std::io::Write) -> Result<()> {
match self {
Sexp::String(ref s) => s.serialize(o),
@@ -382,6 +382,7 @@ impl String_ {
self.1.as_ref().map(|b| b.as_ref())
}
+ /// Writes a serialized version of the object to `o`.
pub fn serialize(&self, o: &mut dyn std::io::Write) -> Result<()> {
if let Some(display) = self.display_hint() {
write!(o, "[{}:", display.len())?;