Skip to content

Commit 6c54aaf

Browse files
committed
Document the atomic ordering in the Serialize impl
1 parent 5d41404 commit 6c54aaf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

serde/src/ser/impls.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -915,6 +915,7 @@ macro_rules! atomic_impl {
915915
where
916916
S: Serializer,
917917
{
918+
// Matches the atomic ordering used in libcore for the Debug impl
918919
self.load(Ordering::SeqCst).serialize(serializer)
919920
}
920921
}

0 commit comments

Comments
 (0)