[#1175] Fix typo in error return docs

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2022-03-05 11:46:02 +03:00 committed by LeL
parent d92b1d1bf8
commit e3f4e48d87
4 changed files with 5 additions and 5 deletions

View file

@ -25,7 +25,7 @@ func bucketNameLockers(idCnr cid.ID) []byte {
// Lock marks objects as locked with another object. All objects are from the
// specified container.
//
// Allows locking regular objects only (otherwise returns apistatus.IrregularObjectLock).
// Allows locking regular objects only (otherwise returns apistatus.LockNonRegularObject).
//
// Locked list should be unique. Panics if it is empty.
func (db *DB) Lock(cnr cid.ID, locker oid.ID, locked []oid.ID) error {