Skip to content

Commit a1b8fec

Browse files
fix(f24 p1): update Evict function doc for std::optional return type (#799)
Co-authored-by: Connor Tsui <[email protected]>
1 parent 8de6f6b commit a1b8fec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/buffer/lru_k_replacer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ LRUKReplacer::LRUKReplacer(size_t num_frames, size_t k) : replacer_size_(num_fra
3737
* Successful eviction of a frame should decrement the size of replacer and remove the frame's
3838
* access history.
3939
*
40-
* @return true if a frame is evicted successfully, false if no frames can be evicted.
40+
* @return the frame ID if a frame is successfully evicted, or `std::nullopt` if no frames can be evicted.
4141
*/
4242
auto LRUKReplacer::Evict() -> std::optional<frame_id_t> { return std::nullopt; }
4343

0 commit comments

Comments
 (0)