Commit 97214cb9 authored by Kirill Smelkov's avatar Kirill Smelkov

fixup! go/zodb: Tweak documentation a bit so it renders more well in godoc

Missed few places in 8685b742.
parent 8685b742
......@@ -636,7 +636,7 @@ func (c *Checker) assertEq(a, b interface{}) {
// ----------------------------------------
// noopStorage is dummy StorLoader which for any oid/xid always returns 1-byte data
// noopStorage is dummy StorLoader which for any oid/xid always returns 1-byte data.
type noopStorage struct{}
var noopData = []byte{0}
......@@ -648,7 +648,7 @@ func (s *noopStorage) Load(_ context.Context, xid Xid) (buf *mem.Buf, serial Tid
return mkbuf(noopData), 1, nil
}
// benchLoad serially benchmarks a StorLoader - either storage directly or a cache on top of it
// benchLoad serially benchmarks a StorLoader - either storage directly or a cache on top of it.
//
// oid accessed are [0, worksize)
func benchLoad(b *testing.B, l StorLoader, worksize int) {
......
......@@ -182,7 +182,7 @@ func (e *NoDataError) Error() string {
}
}
// OpError is the error returned by IStorageDriver operations
// OpError is the error returned by IStorageDriver operations.
type OpError struct {
URL string // URL of the storage
Op string // operation that failed
......@@ -204,7 +204,7 @@ func (e *OpError) Cause() error {
}
// IStorage is the interface provided by opened ZODB storage
// IStorage is the interface provided by opened ZODB storage.
type IStorage interface {
IStorageDriver
......@@ -219,7 +219,7 @@ type IStorage interface {
Prefetch(ctx context.Context, xid Xid)
}
// IStorageDriver is the raw interface provided by ZODB storage drivers
// IStorageDriver is the raw interface provided by ZODB storage drivers.
type IStorageDriver interface {
// URL returns URL of how the storage was opened
URL() string
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment