Skip to content

Commit 4deea23

Browse files
bors[bot]nickray
andauthored
Merge #388
388: Minor but confusing mistake in documentation on `fn write` r=therealprof a=nickray Co-authored-by: Nicolas Stalder <[email protected]>
2 parents d03961f + 338ccdc commit 4deea23

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)