]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
docs: misc warning fixes
authorVladimír Čunát <vladimir.cunat@nic.cz>
Thu, 26 Jan 2017 14:50:26 +0000 (15:50 +0100)
committerVladimír Čunát <vladimir.cunat@nic.cz>
Thu, 26 Jan 2017 15:05:04 +0000 (16:05 +0100)
daemon/README.rst
lib/generic/lru.h

index e55006360e3ac2ad46106803e2038648a740d8a8..c6365f1baa02cdaa3bb269daea79ef851f8ea99e 100644 (file)
@@ -804,10 +804,11 @@ daemons or manipulated from other processes, making for example synchronised loa
   Get or set maximum cache TTL.
 
   .. note:: The `ttl` value must be in range `(min_ttl, 4294967295)`.
-  
+
   .. warning:: This settings applies only to currently open cache, it will not persist if the cache is closed or reopened.
 
   .. code-block:: lua
+
      -- Get maximum TTL
      cache.max_ttl()
      518400
@@ -823,10 +824,11 @@ daemons or manipulated from other processes, making for example synchronised loa
   Get or set minimum cache TTL. Any entry inserted into cache with TTL lower than minimal will be overriden to minimum TTL. Forcing TTL higher than specified violates DNS standards, use with care.
 
   .. note:: The `ttl` value must be in range `<0, max_ttl)`.
-  
+
   .. warning:: This settings applies only to currently open cache, it will not persist if the cache is closed or reopened.
 
   .. code-block:: lua
+
      -- Get minimum TTL
      cache.min_ttl()
      0
index e72ec7b2e37adfac1fd99267417ee2c277cef8fa..ec91d6addcfb33ff0c4596cf16a18c488a61bb00 100644 (file)
@@ -245,4 +245,4 @@ static inline uint lru_capacity_impl(struct lru *lru)
 }
 
 /** @endcond */
-
+/** @} (addtogroup generics) */