diff --git a/api/layout/paths.go b/api/layout/paths.go index 6366dfce..07d2aa2b 100644 --- a/api/layout/paths.go +++ b/api/layout/paths.go @@ -117,7 +117,7 @@ func ParseTileIndexPartial(index string) (uint64, uint8, error) { var err error w64, err := strconv.ParseUint(indexPaths[len(indexPaths)-1], 10, 64) if err != nil || w64 < 1 || w64 >= TileWidth { - return 0, 0, fmt.Errorf("failed to parse tile index") + return 0, 0, fmt.Errorf("failed to parse tile width") } w = uint8(w64) indexPaths[len(indexPaths)-2] = strings.TrimSuffix(indexPaths[len(indexPaths)-2], ".p") diff --git a/api/layout/tile.go b/api/layout/tile.go index 4a38f08b..ded1c6da 100644 --- a/api/layout/tile.go +++ b/api/layout/tile.go @@ -20,7 +20,7 @@ const ( TileHeight = 8 // TileWidth is the maximum number of hashes which can be present in the bottom row of a tile. TileWidth = 1 << TileHeight - // EntryBundleWirth is the maximum number of entries which can be present in an EntryBundle. + // EntryBundleWidth is the maximum number of entries which can be present in an EntryBundle. // This is defined to be the same as the width of the node tiles by tlog-tile spec. EntryBundleWidth = TileWidth )