From 50dc5f10a64198d2e3cd16e3b6cc831a241ec6b2 Mon Sep 17 00:00:00 2001 From: Daniel Mizyrycki Date: Fri, 6 Dec 2019 08:28:36 -0800 Subject: docs/reference/filesystem: Fix typo in block device code example. --- docs/reference/filesystem.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/reference/filesystem.rst') diff --git a/docs/reference/filesystem.rst b/docs/reference/filesystem.rst index 71d34e795..99e230531 100644 --- a/docs/reference/filesystem.rst +++ b/docs/reference/filesystem.rst @@ -124,7 +124,7 @@ interface (i.e. both signatures and behaviours of the self.block_size = block_size self.data = bytearray(block_size * num_blocks) - def readblocks(self, block, buf, offset=0): + def readblocks(self, block_num, buf, offset=0): addr = block_num * self.block_size + offset for i in range(len(buf)): buf[i] = self.data[addr + i] -- cgit v1.2.3