From 0fad6aae538e1d890825061d82968ec758687fae Mon Sep 17 00:00:00 2001 From: huangsimin Date: Thu, 18 Jul 2019 15:00:20 +0800 Subject: [PATCH] readme change --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index ed825d9..7321b14 100644 --- a/README.md +++ b/README.md @@ -41,11 +41,11 @@ func main() { iter := pq.Iterator() // Next 小到大 // log.Println(iter.Value()) 直接使用会报错, - iter.Next() - log.Println(iter.Value()) // 起始最大值 5 + iter.Next() // Next 从小到大 + log.Println(iter.Value()) // 起始最大值. true 5 - log.Println(iter.Next(), iter.Value()) // 5 - // 大到小 - log.Println(iter.Prev(), iter.Value()) // 4 + log.Println(iter.Next(), iter.Value()) // false 5 + // Prev 大到小 + log.Println(iter.Prev(), iter.Value()) // true 4 } ```