ScenicFramework / scenic

Core Scenic library
Apache License 2.0
1.99k stars 137 forks source link

Fix Graph.modify/3 examples #212

Closed tylerhunt closed 3 years ago

tylerhunt commented 3 years ago

Description

Update the documentation for Graph.modify/3 to fix the examples, which had:

|> Graph.modify( :explicit_id, &text("Updated Text 1") )

While it looks that should be:

|> Graph.modify( :explicit_id, &text(&1, "Updated Text 1") )

Motivation and Context

The example code doesn't work.

Types of changes

Checklist

codecov[bot] commented 3 years ago

Codecov Report

Merging #212 (3108143) into master (9642150) will not change coverage. The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #212   +/-   ##
=======================================
  Coverage   86.66%   86.66%           
=======================================
  Files          87       87           
  Lines        2340     2340           
=======================================
  Hits         2028     2028           
  Misses        312      312           
Impacted Files Coverage Δ
lib/scenic/graph.ex 95.04% <ø> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 9642150...3108143. Read the comment docs.

boydm commented 3 years ago

Thank you!