浏览代码

Docs: YAML mappings use colons, not equals sign

Closes #6750
Naoki Orii 11 年之前
父节点
当前提交
e662d3c535
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      docs/java-api/client.asciidoc

+ 3 - 3
docs/java-api/client.asciidoc

@@ -54,12 +54,12 @@ different clusters by simply setting the `cluster.name` setting, or
 explicitly using the `clusterName` method on the builder.
 explicitly using the `clusterName` method on the builder.
 
 
 You can define `cluster.name` in the `/src/main/resources/elasticsearch.yml`
 You can define `cluster.name` in the `/src/main/resources/elasticsearch.yml`
-dir in your project. As long as `elasticsearch.yml` is present in the
+file in your project. As long as `elasticsearch.yml` is present in the
 classpath, it will be used when you start your node.
 classpath, it will be used when you start your node.
 
 
-[source,java]
+[source,yaml]
 --------------------------------------------------
 --------------------------------------------------
-cluster.name=yourclustername
+cluster.name: yourclustername
 --------------------------------------------------
 --------------------------------------------------
 
 
 Or in Java:
 Or in Java: