提交 bc99be0f 编写于 作者: V Vladimir Chebotarev

Minor Markdown fixes. [#CLICKHOUSE-2]

上级 21cf553f
......@@ -307,15 +307,15 @@ size_t max_block_size;
**2.** For the names of functions (methods), use camelCase beginning with a lowercase letter.
```cpp
std::string getName() const override { return "Memory"; }
```
```cpp
std::string getName() const override { return "Memory"; }
```
**3.** For the names of classes (structs), use CamelCase beginning with an uppercase letter. Prefixes other than I are not used for interfaces.
```cpp
class StorageMemory : public IStorage
```
```cpp
class StorageMemory : public IStorage
```
**4.** `using` are named the same way as classes, or with `_t` on the end.
......
......@@ -307,14 +307,15 @@ size_t max_block_size;
**2.** Имена функций (методов) camelCase с маленькой буквы.
```cpp
std::string getName() const override { return "Memory"; }
```
```cpp
std::string getName() const override { return "Memory"; }
```
**3.** Имена классов (структур) - CamelCase с большой буквы. Префиксы кроме I для интерфейсов - не используются.
```cpp
class StorageMemory : public IStorage
```
```cpp
class StorageMemory : public IStorage
```
**4.** `using` называются также, как классы, либо с `_t` на конце.
......
......@@ -307,15 +307,15 @@ size_t max_block_size;
**2.** 对于函数(方法)的名称,请使用以小写字母开头的驼峰标识。
```cpp
std::string getName() const override { return "Memory"; }
```
```cpp
std::string getName() const override { return "Memory"; }
```
**3.** 对于类(结构)的名称,使用以大写字母开头的驼峰标识。接口名称用I前缀。
```cpp
class StorageMemory : public IStorage
```
```cpp
class StorageMemory : public IStorage
```
**4.** `using` 的命名方式与类相同,或者以__t`命名。
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册