瀏覽代碼

doc: fix typo in Sorting section (#1080)

LiterallyVoid 2 年之前
父節點
當前提交
826eb7ed65
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      docs/md/entity.md

+ 1 - 1
docs/md/entity.md

@@ -583,7 +583,7 @@ There are two functions that respond to slightly different needs:
 * Components are sorted either directly:
 * Components are sorted either directly:
 
 
   ```cpp
   ```cpp
-  registry.sort<renderable>([](const auto &lhs, const auto &rhs) {
+  registry.sort<renderable>([](const renderable &lhs, const renderable &rhs) {
       return lhs.z < rhs.z;
       return lhs.z < rhs.z;
   });
   });
   ```
   ```