You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by hu...@apache.org on 2018/09/12 05:28:57 UTC
[incubator-dubbo-website] branch asf-site updated: Fix an error in
SPI.md and fix typo.
This is an automated email from the ASF dual-hosted git repository.
huxing pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/incubator-dubbo-website.git
The following commit(s) were added to refs/heads/asf-site by this push:
new c0e1ca2 Fix an error in SPI.md and fix typo.
c0e1ca2 is described below
commit c0e1ca2a0a26a45f725356fbde1d435fbaae7987
Author: Junlan Shuai <sh...@gmail.com>
AuthorDate: Wed Sep 12 13:28:55 2018 +0800
Fix an error in SPI.md and fix typo.
---
docs/en-us/dev/SPI.md | 10 +++++-----
docs/zh-cn/dev/SPI.md | 10 +++++-----
2 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/docs/en-us/dev/SPI.md b/docs/en-us/dev/SPI.md
index 93a79ce..080d13b 100644
--- a/docs/en-us/dev/SPI.md
+++ b/docs/en-us/dev/SPI.md
@@ -31,7 +31,7 @@ package com.alibaba.xxx;
import com.alibaba.dubbo.rpc.Protocol;
-public class XxxProtocol implemenets Protocol {
+public class XxxProtocol implements Protocol {
// ...
}
```
@@ -57,10 +57,10 @@ package com.alibaba.xxx;
import com.alibaba.dubbo.rpc.Protocol;
-public class XxxProtocolWrapper implemenets Protocol {
+public class XxxProtocolWrapper implements Protocol {
Protocol impl;
- public XxxProtocol(Protocol protocol) { impl = protocol; }
+ public XxxProtocolWrapper(Protocol protocol) { impl = protocol; }
//after interface method is executed,the method in extension will be executed
public void refer() {
@@ -100,7 +100,7 @@ public interface WheelMaker {
`CarMaker` implementation:
```java
-public class RaceCarMaker implemenets CarMaker {
+public class RaceCarMaker implements CarMaker {
WheelMaker wheelMaker;
public setWheelMaker(WheelMaker wheelMaker) {
@@ -149,7 +149,7 @@ public interface WheelMaker {
`CarMaker` implementation:
```java
-public class RaceCarMaker implemenets CarMaker {
+public class RaceCarMaker implements CarMaker {
WheelMaker wheelMaker;
public setWheelMaker(WheelMaker wheelMaker) {
diff --git a/docs/zh-cn/dev/SPI.md b/docs/zh-cn/dev/SPI.md
index fee7c7c..99e1956 100644
--- a/docs/zh-cn/dev/SPI.md
+++ b/docs/zh-cn/dev/SPI.md
@@ -31,7 +31,7 @@ package com.alibaba.xxx;
import com.alibaba.dubbo.rpc.Protocol;
-public class XxxProtocol implemenets Protocol {
+public class XxxProtocol implements Protocol {
// ...
}
```
@@ -57,10 +57,10 @@ package com.alibaba.xxx;
import com.alibaba.dubbo.rpc.Protocol;
-public class XxxProtocolWrapper implemenets Protocol {
+public class XxxProtocolWrapper implements Protocol {
Protocol impl;
- public XxxProtocol(Protocol protocol) { impl = protocol; }
+ public XxxProtocolWrapper(Protocol protocol) { impl = protocol; }
// 接口方法做一个操作后,再调用extension的方法
public void refer() {
@@ -100,7 +100,7 @@ public interface WheelMaker {
`CarMaker` 的一个实现类:
```java
-public class RaceCarMaker implemenets CarMaker {
+public class RaceCarMaker implements CarMaker {
WheelMaker wheelMaker;
public setWheelMaker(WheelMaker wheelMaker) {
@@ -149,7 +149,7 @@ public interface WheelMaker {
`CarMaker` 的一个实现类:
```java
-public class RaceCarMaker implemenets CarMaker {
+public class RaceCarMaker implements CarMaker {
WheelMaker wheelMaker;
public setWheelMaker(WheelMaker wheelMaker) {