Skip to content

Commit 338ccdc

Browse files
committed
Minor but confusing mistake in documentation on fn write
1 parent d03961f commit 338ccdc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@
219219
//! pub fn read(&self) -> R { .. }
220220
//!
221221
//! /// Writes to the register
222-
//! pub fn write<F>(&mut self, f: F)
222+
//! pub fn write<F>(&self, f: F)
223223
//! where
224224
//! F: FnOnce(&mut W) -> &mut W,
225225
//! {

0 commit comments

Comments
 (0)