summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAdam <adam@adambard.com>2013-06-28 21:08:58 -0700
committerAdam <adam@adambard.com>2013-06-28 21:08:58 -0700
commit879d31e2c648666c22ec332545482caa2a0c6bf4 (patch)
tree477b936d0d7929e50c72c1bd8e24a59a129db37d
parent561b879c0d1019063b720a2c139a12ee51203977 (diff)
Updated pass-by-reference bit in c tutorial. Fixes #31
-rw-r--r--c.html.markdown4
1 files changed, 2 insertions, 2 deletions
diff --git a/c.html.markdown b/c.html.markdown
index 78083ea5..f5b6245d 100644
--- a/c.html.markdown
+++ b/c.html.markdown
@@ -297,8 +297,8 @@ int add_two_ints(int x1, int x2){
}
/*
-Pointers are passed-by-reference (duh), so functions
-can mutate their values.
+Functions are pass-by-value, but you can make your own references
+with pointers so functions can mutate their values.
Example: in-place string reversal
*/